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:
Sebastian Bazley 2013-04-30 17:50:45 +00:00
parent f7f4b909d0
commit bb3d861fcd
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
/**