You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/04/29 00:51:54 UTC

svn commit: r1476851 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java

Author: sebb
Date: Sun Apr 28 22:51:53 2013
New Revision: 1476851

URL: http://svn.apache.org/r1476851
Log:
Findbugs points out that an int can never be > Integer.MAX_VALUE

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java?rev=1476851&r1=1476850&r2=1476851&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java Sun Apr 28 22:51:53 2013
@@ -67,6 +67,6 @@ public abstract class AbstractKeyAnalyze
      * {@link Integer#MAX_VALUE}
      */
     static boolean isValidBitIndex(final int bitIndex) {
-        return 0 <= bitIndex && bitIndex <= Integer.MAX_VALUE;
+        return bitIndex >= 0;
     }
 }