mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-9353 use Collections.synchronizedSet() rather than Collections.newSetFromMap()
X-SVN-Rev: 32188
This commit is contained in:
parent
53650b04c5
commit
847faa3579
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ import java.text.CharacterIterator;
|
|||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.Stack;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.HashSet;
|
||||
|
||||
import com.ibm.icu.impl.Assert;
|
||||
import com.ibm.icu.impl.ICUDebug;
|
||||
|
@ -322,7 +322,7 @@ public class RuleBasedBreakIterator extends BreakIterator {
|
|||
*/
|
||||
private boolean fUseDictionary = true;
|
||||
|
||||
private final Set<LanguageBreakEngine> fBreakEngines = Collections.newSetFromMap(new ConcurrentHashMap<LanguageBreakEngine, Boolean>());
|
||||
private final Set<LanguageBreakEngine> fBreakEngines = Collections.synchronizedSet(new HashSet<LanguageBreakEngine>());
|
||||
|
||||
/*
|
||||
* ICU debug argument name for RBBI
|
||||
|
|
Loading…
Add table
Reference in a new issue