Don't do anything on clear if the set is already empty.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2803 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
andrzej@threerings.net
2010-08-17 04:48:13 +00:00
parent d1f5c4593f
commit 8a45193748
@@ -274,10 +274,12 @@ public class HashIntSet extends AbstractIntSet
@Override // documentation inherited
public void clear ()
{
if (_size > 0) {
createBuckets(MIN_BUCKET_COUNT);
_size = 0;
_modcount++;
}
}
@Override // documentation inherited
public HashIntSet clone ()