Changeset 7079 in josm for trunk/src/org
- Timestamp:
- 2014-05-08T15:15:11+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r7005 r7079 46 46 47 47 /** the cached changesets */ 48 private final Map<Integer, Changeset> cache 48 private final Map<Integer, Changeset> cache = new HashMap<>(); 49 49 50 50 private final CopyOnWriteArrayList<ChangesetCacheListener> listeners = … … 56 56 57 57 public void addChangesetCacheListener(ChangesetCacheListener listener) { 58 listeners.addIfAbsent(listener); 58 if (listener != null) { 59 listeners.addIfAbsent(listener); 60 } 59 61 } 60 62 61 63 public void removeChangesetCacheListener(ChangesetCacheListener listener) { 62 listeners.remove(listener); 64 if (listener != null) { 65 listeners.remove(listener); 66 } 63 67 } 64 68
Note:
See TracChangeset
for help on using the changeset viewer.