From 7068ca93d12f6f47408d5a00f2eda0361aa03336 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 6 Feb 2006 19:32:23 +0000 Subject: [PATCH] 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 --- src/java/com/samskivert/util/ArrayIntSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/samskivert/util/ArrayIntSet.java b/src/java/com/samskivert/util/ArrayIntSet.java index e1509170..b047c85b 100644 --- a/src/java/com/samskivert/util/ArrayIntSet.java +++ b/src/java/com/samskivert/util/ArrayIntSet.java @@ -306,7 +306,7 @@ public class ArrayIntSet extends AbstractSet Interator inter = ((Interable) c).interator(); boolean modified = false; while (inter.hasNext()) { - if (add(other._values[ii])) { + if (add(inter.nextInt())) { modified = true; } }