summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-01-08 12:02:46 (EST)
committerEike Stepper2007-01-08 12:02:46 (EST)
commitb9f36474e451b251a60e1f62fdd352e1bec73141 (patch)
treeff5ce133bbd648ffb23568485253b1a348c332f5
parent2bd939fd8cad71a483fd600a7a00327c9dde8a1e (diff)
downloadcdo-b9f36474e451b251a60e1f62fdd352e1bec73141.zip
cdo-b9f36474e451b251a60e1f62fdd352e1bec73141.tar.gz
cdo-b9f36474e451b251a60e1f62fdd352e1bec73141.tar.bz2
Develop CDO2
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/HashBag.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/HashBag.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/HashBag.java
index 29de7d4..709fc3c 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/HashBag.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/HashBag.java
@@ -50,10 +50,11 @@ public final class HashBag<T> implements Set<T>
{
counter = new Counter();
map.put(o, counter);
+ return true;
}
counter.incValue();
- return true;
+ return false;
}
public boolean addAll(Collection<? extends T> c)
@@ -147,7 +148,7 @@ public final class HashBag<T> implements Set<T>
*/
private static final class Counter
{
- private int value;
+ private int value = 1;
public Counter()
{