Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8294293

Remove unused _width and _newlines field in outputStream

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b18

      _width is entirely unused, _newlines is only used as a boolean check in one place. Remove these and use the return value of update_position to say if a newline was seen or not.

      This removes some cruft from outputStream and saves 8 bytes in allocation.

            jsjolen Johan Sjölen
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: