Changeset 17471 in josm
- Timestamp:
- 2021-01-19T07:27:13+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/RelationMemberData.java
r13829 r17471 27 27 public RelationMemberData(String role, OsmPrimitiveType type, long id) { 28 28 CheckParameterUtil.ensureParameterNotNull(type, "type"); 29 this.role = role == null ? "" : role;29 this.role = (role == null ? "" : role).intern(); 30 30 this.memberType = type; 31 31 this.memberId = id; -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryDataSet.java
r16460 r17471 216 216 if (!MainApplication.isDisplayingMapView()) return; 217 217 if (MainApplication.getLayerManager().getLayers().isEmpty()) { 218 data.clear(); 219 fireCacheCleared(); 220 } 218 clear(); 219 } 220 } 221 222 /** 223 * Clear the history data. 224 * @since 17471 225 */ 226 public void clear() { 227 data.clear(); 228 fireCacheCleared(); 221 229 } 222 230 } -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r16798 r17471 120 120 // see #17270: set focus to last dialog 121 121 new LinkedList<>(dialogs.values()).getLast().toFront(); 122 } else { 123 // we always reload the history, so there is no need to keep it in the cache. 124 HistoryDataSet.getInstance().clear(); 122 125 } 123 126 }
Note:
See TracChangeset
for help on using the changeset viewer.