From: <pj...@us...> - 2010-04-23 05:06:54
|
Revision: 7042 http://jython.svn.sourceforge.net/jython/?rev=7042&view=rev Author: pjenvey Date: 2010-04-23 05:06:48 +0000 (Fri, 23 Apr 2010) Log Message: ----------- reuse concurrentMap Modified Paths: -------------- trunk/jython/src/org/python/util/Generic.java Modified: trunk/jython/src/org/python/util/Generic.java =================================================================== --- trunk/jython/src/org/python/util/Generic.java 2010-04-18 21:45:51 UTC (rev 7041) +++ trunk/jython/src/org/python/util/Generic.java 2010-04-23 05:06:48 UTC (rev 7042) @@ -89,9 +89,7 @@ * whatever this is being assigned to. */ public static <E> Set<E> concurrentSet() { - return newSetFromMap(new ConcurrentHashMap<E, Boolean>(CHM_INITIAL_CAPACITY, - CHM_LOAD_FACTOR, - CHM_CONCURRENCY_LEVEL)); + return newSetFromMap(Generic.<E, Boolean>concurrentMap()); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |