Skip to content

Commit

Permalink
Issue #229 - ConcurrentModificationException
Browse files Browse the repository at this point in the history
  • Loading branch information
nostra13 committed Apr 5, 2013
1 parent 38e631b commit b6f7607
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public void remove(K key) {

@Override
public Collection<K> keys() {
return new HashSet<K>(softMap.keySet());
synchronized (softMap) {
return new HashSet<K>(softMap.keySet());
}
}

@Override
Expand Down

0 comments on commit b6f7607

Please sign in to comment.