InflaterInputStream holds on to a temporary byte array of 512 bytes

XMLWordPrintable

    • b15

      The java.util.zip.InflaterInputStream has a per instance private member:

      private byte[] b = new byte[512];

      This member is only used in the implementation of the skip(...) method of this class and it has no other references/uses within that class.

      This member can be made a method local variable within the implementation of skip(...) itself to allow for it to be allocated (and GCed) if and when skip gets called.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: