Create delegate on InflaterInputStream and DeflaterOutputStream#5744
Create delegate on InflaterInputStream and DeflaterOutputStream#5744ZongoForSpeed wants to merge 1 commit intoeclipse-ee4j:2.xfrom
Conversation
|
Please see our wiki about missing ECA. |
|
The behaviour is the same in JDK 8, the Deflater and Inflater are not called there, either. |
| * @see java.util.zip.Deflater | ||
| * @see java.util.zip.DeflaterOutputStream | ||
| */ | ||
| public final class ClosingDeflaterOutputStream extends OutputStream { |
There was a problem hiding this comment.
I would prefer to make those classes package-private private.
There was a problem hiding this comment.
I can't make this class package-private and keep it in the internal package.
Do you want me to move those classes in the package 'org.glassfish.jersey.message' or to create inner classes ?
|
@jansupol in JDK 8, the finalizer of Deflater & Inflater contains a call the end() method that will release correctly the Deflater/Inflater. |
…ll end on Inflater and Deflater Signed-off-by: Tanguy Lambert <tanguy.lambert@gmail.com> Add missing import Add missing Copyright comments Signed-off-by: Tanguy LAMBERT <tanguy.lambert@gmail.com>
Those delegate are here to be sure the Inflater and Deflater resources are correctly released