Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8225763 Inflater and Deflater should implement AutoCloseable
  3. JDK-8347816

Release Note: `java.util.zip.Inflater` and `java.util.zip.Deflater` Enhanced To Implement `AutoCloseable`

XMLWordPrintable

      `java.util.zip.Inflater` and `java.util.zip.Deflater` now implement `AutoCloseable` and can be used with the try-with-resources statement. Applications could previously invoke the `end()` method to release the resources held by the `Inflater`/`Deflater` instance. Now, either the `end()` or the `close()` method can be invoked to do the same.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: