Deprecate ConcurrentHashSet in favor of Collections.newSetFromMap().
ConcurrentHashSet seems to be a relict from earlier Java times. Since Java 1.6 the preferred method to create a "ConcurrentHashSet" is to use Collections.newSetFromMap(new ConcurrentHashMap<?, ?>())
Showing
Please register or sign in to comment