Undo this, the NPE will happen automatically..
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2650 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -99,10 +99,7 @@ public abstract class AbstractIntSet extends AbstractSet<Integer>
|
|||||||
@Override // from AbstractSet<Integer>
|
@Override // from AbstractSet<Integer>
|
||||||
public boolean add (Integer i)
|
public boolean add (Integer i)
|
||||||
{
|
{
|
||||||
if (i == null) {
|
return add(i.intValue()); // will NPE
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
return add(i.intValue());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // from AbstractSet<Integer>
|
@Override // from AbstractSet<Integer>
|
||||||
|
|||||||
Reference in New Issue
Block a user