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:
parent
8864189257
commit
9d6a3eb828
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue