Findbugs points out that an int can never be > Integer.MAX_VALUE

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1476851 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-04-28 22:51:53 +00:00
parent feb7b2fe0c
commit f2b49b393c

View File

@ -67,6 +67,6 @@ public abstract class AbstractKeyAnalyzer<K> implements KeyAnalyzer<K> {
* {@link Integer#MAX_VALUE}
*/
static boolean isValidBitIndex(final int bitIndex) {
return 0 <= bitIndex && bitIndex <= Integer.MAX_VALUE;
return bitIndex >= 0;
}
}