You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2014/11/14 06:16:52 UTC
svn commit: r1639570 -
/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/BitInputStream.java
Author: bodewig
Date: Fri Nov 14 05:16:48 2014
New Revision: 1639570
URL: http://svn.apache.org/r1639570
Log:
make exception message less ambiguos
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/BitInputStream.java
Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/BitInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/BitInputStream.java?rev=1639570&r1=1639569&r2=1639570&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/BitInputStream.java (original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/BitInputStream.java Fri Nov 14 05:16:48 2014
@@ -77,7 +77,7 @@ public class BitInputStream implements C
*/
public int readBits(final int count) throws IOException {
if (count < 0 || count > MAXIMUM_CACHE_SIZE) {
- throw new IllegalArgumentException("count must be between 0 and " + MAXIMUM_CACHE_SIZE);
+ throw new IllegalArgumentException("count must not be negative or bigger than " + MAXIMUM_CACHE_SIZE);
}
while (bitsCachedSize < count) {
final int nextByte = in.read();