diff --git a/classpath/java/util/zip/Deflater.java b/classpath/java/util/zip/Deflater.java index 28df9754d2..8368bb0817 100644 --- a/classpath/java/util/zip/Deflater.java +++ b/classpath/java/util/zip/Deflater.java @@ -147,6 +147,10 @@ public class Deflater { boolean finish, int[] results); + public void end() { + dispose(); + } + public void dispose() { if (peer != 0) { dispose(peer); diff --git a/classpath/java/util/zip/Inflater.java b/classpath/java/util/zip/Inflater.java index 6e04b87b92..9f44415194 100644 --- a/classpath/java/util/zip/Inflater.java +++ b/classpath/java/util/zip/Inflater.java @@ -127,6 +127,10 @@ public class Inflater { byte[] output, int outputOffset, int outputLength, int[] results); + public void end() { + dispose(); + } + public void dispose() { if (peer != 0) { dispose(peer);