It would be the same...
The code exists since we were on JVM 1.4.
On 2.2, the code still needs to run in JVM 1.5 at the client.. so I would rather keep the code as it is (it's not a big deal anyways).
nimo stephan wrote:
What is the difference of using this:
private Set<Object> threadSafe= new ConcurrentHashSet<Object>();
private Set<Object> threadSafe= Collections.newSetFromMap(new ConcurrentHashMap<Object, Boolean>());
BTW: thanks for the hint.. it's always nice to learn new tricks! But I don't think we can change it now.