commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r1056872 - /commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
Date Sun, 09 Jan 2011 02:55:09 GMT
Author: niallp
Date: Sun Jan  9 02:55:09 2011
New Revision: 1056872

URL: http://svn.apache.org/viewvc?rev=1056872&view=rev
Log:
Port LANG-629 to LANG 2.x Branch - make the underlying set synchronized for CharSet

Modified:
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java?rev=1056872&r1=1056871&r2=1056872&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
Sun Jan  9 02:55:09 2011
@@ -93,7 +93,7 @@ public class CharSet implements Serializ
     }
 
     /** The set of CharRange objects. */
-    private final Set set = new HashSet();
+    private final Set set = Collections.synchronizedSet(new HashSet());
 
     //-----------------------------------------------------------------------
     /**



Mime
View raw message