Fixed build: left something in that I was hemming and hawing about:
something that would be slightly more efficient if the other Collection was an ArrayIntSet, vs something more general for all Interables. I suppose I could put both in: test of ArrayIntSet and do the most efficient thing, then Interable and end up creating an Interator, or pass to the super method. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1781 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -306,7 +306,7 @@ public class ArrayIntSet extends AbstractSet
|
|||||||
Interator inter = ((Interable) c).interator();
|
Interator inter = ((Interable) c).interator();
|
||||||
boolean modified = false;
|
boolean modified = false;
|
||||||
while (inter.hasNext()) {
|
while (inter.hasNext()) {
|
||||||
if (add(other._values[ii])) {
|
if (add(inter.nextInt())) {
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user