|
@@ -3395,8 +3395,10 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
|
|
}
|
|
}
|
|
|
|
|
|
private void overlay(Properties to, Properties from) {
|
|
private void overlay(Properties to, Properties from) {
|
|
- for (Entry<Object, Object> entry: from.entrySet()) {
|
|
|
|
- to.put(entry.getKey(), entry.getValue());
|
|
|
|
|
|
+ synchronized (from) {
|
|
|
|
+ for (Entry<Object, Object> entry : from.entrySet()) {
|
|
|
|
+ to.put(entry.getKey(), entry.getValue());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|