From 01649412e3037cf14e3e36ef20b69b17b4bf8606 Mon Sep 17 00:00:00 2001 From: Xueming Shen Date: Fri, 29 May 2009 16:34:49 -0700 Subject: [PATCH] 6808625: Incomplete code sample in Deflater javadoc Added compresser.end() into example Reviewed-by: martin --- jdk/src/share/classes/java/util/zip/Deflater.java | 1 + 1 file changed, 1 insertion(+) 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();