Ticket #21462: 21462-synchronized.patch
| File 21462-synchronized.patch, 765 bytes (added by , 4 years ago) |
|---|
-
src/org/openstreetmap/josm/data/Preferences.java
682 682 * @return {@code true}, if something has changed (i.e. value is different than before) 683 683 */ 684 684 @Override 685 public synchronizedboolean putSetting(final String key, Setting<?> setting) {685 public boolean putSetting(final String key, Setting<?> setting) { 686 686 CheckParameterUtil.ensureParameterNotNull(key); 687 687 if (setting != null && setting.getValue() == null) 688 688 throw new IllegalArgumentException("setting argument must not have null value");
