diff --git a/classpath/java/util/Collections.java b/classpath/java/util/Collections.java index c57c190a06..c820ad20d0 100644 --- a/classpath/java/util/Collections.java +++ b/classpath/java/util/Collections.java @@ -245,6 +245,10 @@ public class Collections { } } + public static Set synchronizedSet(Set set) { + return new SynchronizedSet (new Object(), set); + } + static class SynchronizedIterator implements Iterator { private final Object lock; private final Iterator it;