Author: mturk Date: Wed Aug 17 12:40:19 2011 New Revision: 1158662 URL: http://svn.apache.org/viewvc?rev=1158662&view=rev Log: Make derived methods final
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Deflater.java commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Inflater.java Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Deflater.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Deflater.java?rev=1158662&r1=1158661&r2=1158662&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Deflater.java (original) +++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Deflater.java Wed Aug 17 12:40:19 2011 @@ -145,7 +145,7 @@ public abstract class Deflater implement * @param b the input data bytes. * @throws InvalidArgumentException if the provided parameters are invalid */ - public void setInput(byte[] b) + public final void setInput(byte[] b) throws InvalidArgumentException { if (b.length < 1) @@ -186,7 +186,7 @@ public abstract class Deflater implement * @param len the length of the input data * @throws InvalidArgumentException if the provided parameters are invalid */ - public void setInput(Pointer b, long off, int len) + public final void setInput(Pointer b, long off, int len) throws InvalidArgumentException { if (b.isNull()) @@ -206,7 +206,7 @@ public abstract class Deflater implement * @param b pointer to the input data bytes. * @throws InvalidArgumentException if the provided parameters are invalid */ - public void setInput(Pointer b) + public final void setInput(Pointer b) throws InvalidArgumentException { if (b.isNull()) @@ -281,7 +281,7 @@ public abstract class Deflater implement * @throws InvalidDataException if the provided data was invalid * @throws OutOfMemoryError if the memory allocation failed */ - public int deflate(byte[] b) + public final int deflate(byte[] b) throws InvalidArgumentException, InvalidDataException, OutOfMemoryError @@ -339,7 +339,7 @@ public abstract class Deflater implement * @throws InvalidDataException if the input data was invalid or corrupt. * @throws OutOfMemoryError if the memory allocation failed */ - public int deflate(Pointer b, long off, int len) + public final int deflate(Pointer b, long off, int len) throws InvalidArgumentException, InvalidDataException, OutOfMemoryError @@ -365,7 +365,7 @@ public abstract class Deflater implement * @throws InvalidDataException if the provided data was invalid * @throws OutOfMemoryError if the memory allocation failed */ - public int deflate(Pointer b) + public final int deflate(Pointer b) throws InvalidArgumentException, InvalidDataException, OutOfMemoryError Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Inflater.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Inflater.java?rev=1158662&r1=1158661&r2=1158662&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Inflater.java (original) +++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Inflater.java Wed Aug 17 12:40:19 2011 @@ -117,7 +117,7 @@ public abstract class Inflater implement * * @throws InvalidArgumentException if the provided parameters are invalid */ - public void setInput(byte[] b) + public final void setInput(byte[] b) throws InvalidArgumentException { if (b.length < 1) @@ -161,7 +161,7 @@ public abstract class Inflater implement * * @throws InvalidArgumentException if the provided parameters are invalid */ - public void setInput(Pointer b, long off, int len) + public final void setInput(Pointer b, long off, int len) throws InvalidArgumentException { if (b.isNull()) @@ -181,7 +181,7 @@ public abstract class Inflater implement * * @throws InvalidArgumentException if the provided parameters are invalid */ - public void setInput(Pointer b) + public final void setInput(Pointer b) throws InvalidArgumentException { if (b.isNull()) @@ -264,7 +264,7 @@ public abstract class Inflater implement * @throws InvalidDataException if the provided data was invalid * @throws OutOfMemoryError if the memory allocation failed */ - public int inflate(byte[] b) + public final int inflate(byte[] b) throws InvalidArgumentException, InvalidDataException, OutOfMemoryError @@ -332,7 +332,7 @@ public abstract class Inflater implement * @throws InvalidDataException if the input data was invalid or corrupt. * @throws OutOfMemoryError if the memory allocation failed */ - public int inflate(Pointer b, long off, int len) + public final int inflate(Pointer b, long off, int len) throws InvalidArgumentException, InvalidDataException, OutOfMemoryError @@ -360,7 +360,7 @@ public abstract class Inflater implement * @throws InvalidDataException if the provided data was invalid * @throws OutOfMemoryError if the memory allocation failed */ - public int inflate(Pointer b) + public final int inflate(Pointer b) throws InvalidArgumentException, InvalidDataException, OutOfMemoryError