[weld-commits] Weld SVN: r6766 - core/trunk/impl/src/main/java/org/jboss/weld/util/collections.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Fri Jul 23 01:53:45 EDT 2010
Author: swd847
Date: 2010-07-23 01:53:44 -0400 (Fri, 23 Jul 2010)
New Revision: 6766
Modified:
core/trunk/impl/src/main/java/org/jboss/weld/util/collections/ImmutableArraySet.java
Log:
fix bug in ImmutableArraySet.containsAll where it would return true if a single element was contained in the set
Modified: core/trunk/impl/src/main/java/org/jboss/weld/util/collections/ImmutableArraySet.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/util/collections/ImmutableArraySet.java 2010-07-22 22:32:33 UTC (rev 6765)
+++ core/trunk/impl/src/main/java/org/jboss/weld/util/collections/ImmutableArraySet.java 2010-07-23 05:53:44 UTC (rev 6766)
@@ -112,12 +112,12 @@
{
for (Object object : c)
{
- if (contains(object))
+ if (!contains(object))
{
- return true;
+ return false;
}
}
- return false;
+ return true;
}
public boolean isEmpty()
More information about the weld-commits
mailing list