- Timestamp:
- 2020-08-02T20:30:02+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ToggleAction.java
r16553 r16824 101 101 */ 102 102 public final void removeButtonModel(ButtonModel model) { 103 if (model != null && buttonModels.contains(model)) {103 if (model != null) { 104 104 buttonModels.remove(model); 105 105 } -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r16509 r16824 129 129 public static void unregisterUploadHook(UploadHook hook) { 130 130 if (hook == null) return; 131 if (UPLOAD_HOOKS.contains(hook)) { 132 UPLOAD_HOOKS.remove(hook); 133 } 134 if (LATE_UPLOAD_HOOKS.contains(hook)) { 135 LATE_UPLOAD_HOOKS.remove(hook); 136 } 131 UPLOAD_HOOKS.remove(hook); 132 LATE_UPLOAD_HOOKS.remove(hook); 137 133 } 138 134 -
trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java
r16657 r16824 81 81 public static void unregisterFormatHook(NameFormatterHook hook) { 82 82 if (hook == null) return; 83 if (formatHooks.contains(hook)) { 84 formatHooks.remove(hook); 85 } 83 formatHooks.remove(hook); 86 84 } 87 85 -
trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
r16643 r16824 161 161 if (!ignoredAddresses.contains(simplifiedAddress)) { 162 162 ignoredAddresses.add(simplifiedAddress); 163 } else if (knownAddresses.containsKey(simplifiedAddress)){163 } else { 164 164 knownAddresses.remove(simplifiedAddress); 165 165 } -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/AbstractListMergeModel.java
r16601 r16824 223 223 public void addPropertyChangeListener(PropertyChangeListener listener) { 224 224 synchronized (listeners) { 225 if (listener != null && !listeners.contains(listener)) {225 if (listener != null) { 226 226 listeners.add(listener); 227 227 } … … 231 231 public void removePropertyChangeListener(PropertyChangeListener listener) { 232 232 synchronized (listeners) { 233 if (listener != null && listeners.contains(listener)) {233 if (listener != null) { 234 234 listeners.remove(listener); 235 235 } -
trunk/src/org/openstreetmap/josm/gui/util/CellEditorSupport.java
r8390 r16824 41 41 public final void addCellEditorListener(CellEditorListener l) { 42 42 synchronized (this) { 43 if (l != null && !listeners.contains(l)) {43 if (l != null) { 44 44 listeners.add(l); 45 45 } … … 53 53 public final void removeCellEditorListener(CellEditorListener l) { 54 54 synchronized (this) { 55 if (l != null && listeners.contains(l)) {55 if (l != null) { 56 56 listeners.remove(l); 57 57 } -
trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java
r14384 r16824 184 184 for (PluginHandler.DeprecatedPlugin p : PluginHandler.DEPRECATED_PLUGINS) { 185 185 if (canceled) return; 186 if (availablePlugins.containsKey(p.name)) { 187 availablePlugins.remove(p.name); 188 } 186 availablePlugins.remove(p.name); 189 187 } 190 188 }
Note:
See TracChangeset
for help on using the changeset viewer.