Explicit boxing shows that NPE may occur so document it
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1477738 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f7f4b909d0
commit
bb3d861fcd
|
@ -65,9 +65,10 @@ public class CharacterKeyAnalyzer extends AbstractKeyAnalyzer<Character> {
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @throws NullPointerException if the key is null
|
||||
*/
|
||||
public boolean isBitSet(final Character key, final int bitIndex, final int lengthInBits) {
|
||||
return (key & mask(bitIndex)) != 0;
|
||||
return (key.charValue() & mask(bitIndex)) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue