mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed ConcurrentModificationException. Bug 293822.
This commit is contained in:
parent
1a93930f72
commit
e9a4ea6e19
1 changed files with 7 additions and 5 deletions
|
@ -219,9 +219,11 @@ public class DefaultSpellChecker implements ISpellChecker {
|
||||||
|
|
||||||
iterator.setIgnoreSingleLetters(ignoreSingleLetters);
|
iterator.setIgnoreSingleLetters(ignoreSingleLetters);
|
||||||
|
|
||||||
|
synchronized (fDictionaries) {
|
||||||
Iterator<ISpellDictionary> iter= fDictionaries.iterator();
|
Iterator<ISpellDictionary> iter= fDictionaries.iterator();
|
||||||
while (iter.hasNext())
|
while (iter.hasNext())
|
||||||
iter.next().setStripNonLetters(ignoreNonLetters);
|
iter.next().setStripNonLetters(ignoreNonLetters);
|
||||||
|
}
|
||||||
|
|
||||||
String word= null;
|
String word= null;
|
||||||
boolean starts= false;
|
boolean starts= false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue