package uk.org.cinquin.mutinack.misc_util.collections;

import gnu.trove.set.hash.THashSet;

public class InterningSet<T> extends THashSet<T> {
	public InterningSet(int i) {
		super(i);
	}

	public InterningSet() {
		super();
	}

	public T intern(T l) {
		T previous = get(l);
		if (previous != null) {
			return previous;
		}
		add(l);
		return l;
	}
}
@@ -49,16 +49,67 @@
 tions;%0A%0A
+import javax.annotation.concurrent.NotThreadSafe;%0A%0A
 import g
@@ -137,16 +137,31 @@
 shSet;%0A%0A
+@NotThreadSafe%0A
 public c

Add NotThreadSafe annotation.