Explicit unboxing

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1436075 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-01-21 01:37:51 +00:00
parent 8864189257
commit 9d6a3eb828
4 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ public class ByteKeyAnalyzer extends AbstractKeyAnalyzer<Byte> {
* {@inheritDoc}
*/
public boolean isBitSet(final Byte key, final int bitIndex, final int lengthInBits) {
return (key & mask(bitIndex)) != 0;
return (key.intValue() & mask(bitIndex)) != 0;
}
/**

View File

@ -66,7 +66,7 @@ public class IntegerKeyAnalyzer extends AbstractKeyAnalyzer<Integer> {
* {@inheritDoc}
*/
public boolean isBitSet(final Integer key, final int bitIndex, final int lengthInBits) {
return (key & mask(bitIndex)) != 0;
return (key.intValue() & mask(bitIndex)) != 0;
}
/**

View File

@ -66,7 +66,7 @@ public class LongKeyAnalyzer extends AbstractKeyAnalyzer<Long> {
* {@inheritDoc}
*/
public boolean isBitSet(final Long key, final int bitIndex, final int lengthInBits) {
return (key & mask(bitIndex)) != 0;
return (key.longValue() & mask(bitIndex)) != 0;
}
/**

View File

@ -66,7 +66,7 @@ public class ShortKeyAnalyzer implements KeyAnalyzer<Short> {
* {@inheritDoc}
*/
public boolean isBitSet(final Short key, final int bitIndex, final int lengthInBits) {
return (key & mask(bitIndex)) != 0;
return (key.intValue() & mask(bitIndex)) != 0;
}
/**