diff --git a/jdk/src/share/classes/java/util/zip/Deflater.java b/jdk/src/share/classes/java/util/zip/Deflater.java index e04d446b58d..8e5e945e46f 100644 --- a/jdk/src/share/classes/java/util/zip/Deflater.java +++ b/jdk/src/share/classes/java/util/zip/Deflater.java @@ -49,6 +49,7 @@ package java.util.zip; * compresser.setInput(input); * compresser.finish(); * int compressedDataLength = compresser.deflate(output); + * compresser.end(); * * // Decompress the bytes * Inflater decompresser = new Inflater();