Changeset 12025 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-04-29T22:04:53+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
r11848 r12025 151 151 152 152 private final ValueChangeListener<Object> invalidateListener = change -> invalidate(); 153 private boolean isDestroyed; 153 154 154 155 /** … … 271 272 */ 272 273 @Override 273 public void destroy() { 274 public synchronized void destroy() { 275 if (isDestroyed) { 276 throw new IllegalStateException("The layer has already been destroyed: " + this); 277 } 278 isDestroyed = true; 274 279 // Override in subclasses if needed 275 280 removeColorPropertyListener();
Note:
See TracChangeset
for help on using the changeset viewer.