commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r998000 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSet.java
Date Fri, 17 Sep 2010 07:18:04 GMT
Author: bayard
Date: Fri Sep 17 07:18:03 2010
New Revision: 998000

URL: http://svn.apache.org/viewvc?rev=998000&view=rev
Log:
Per LANG-629, making the underlying set synchronized for CharSet

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSet.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSet.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSet.java?rev=998000&r1=997999&r2=998000&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSet.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSet.java Fri Sep
17 07:18:03 2010
@@ -93,7 +93,7 @@ public class CharSet implements Serializ
     }
 
     /** The set of CharRange objects. */
-    private final Set<CharRange> set = new HashSet<CharRange>();
+    private final Set<CharRange> set = Collections.synchronizedSet(new HashSet<CharRange>());
 
     //-----------------------------------------------------------------------
     /**



Mime
View raw message