Menu

#12 X ChainedHashSet.clear() doesn't work!!

v1.2
open
nobody
Classes (14)
5
2009-03-26
2009-03-26
Anonymous
No

This simple code show the IntChainedHashSet.clear(), LongChainedHashSet.clear() (etc) are not implemented correctly:

IntSet s = new IntChainedHashSet();
s.add(33);
s.clear();
System.out.println(s); //WTF???!!
System.out.println(s.iterator().hasNext());//WTF???!!
boolean b = s.add(33);
System.out.println(b); //WTF???!!

Discussion


Log in to post a comment.