Changeset 11461 in josm
- Timestamp:
- 2017-01-12T02:36:14+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r11452 r11461 1584 1584 if (setting instanceof MapListSetting) { 1585 1585 List<Map<String, String>> l = new ArrayList<>(((MapListSetting) setting).getValue()); 1586 if (l.stream().noneMatch(x -> x. values().contains(url))) {1586 if (l.stream().noneMatch(x -> x.containsValue(url))) { 1587 1587 RulePrefHelper helper = ValidatorTagCheckerRulesPreference.RulePrefHelper.INSTANCE; 1588 1588 Optional<ExtendedSourceEntry> val = helper.getDefault().stream().filter(x -> url.equals(x.url)).findFirst(); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitor.java
r10134 r11461 55 55 56 56 protected boolean isAlreadyRemembered(OsmPrimitive primitive) { 57 return mappedPrimitives. keySet().contains(primitive);57 return mappedPrimitives.containsKey(primitive); 58 58 } 59 59 -
trunk/src/org/openstreetmap/josm/data/preferences/MapListSetting.java
r11394 r11461 41 41 throw new IllegalArgumentException("Error: Null as list element in preference setting"); 42 42 for (Map<String, String> map : value) { 43 if (map. keySet().contains(null))43 if (map.containsKey(null)) 44 44 throw new IllegalArgumentException("Error: Null as map key in preference setting"); 45 if (map. values().contains(null))45 if (map.containsValue(null)) 46 46 throw new IllegalArgumentException("Error: Null as map value in preference setting"); 47 47 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationDialogManager.java
r10345 r11461 150 150 if (relation == null) return false; 151 151 DialogContext context = new DialogContext(layer, relation); 152 return openDialogs.keySet().contains(context); 153 152 return openDialogs.containsKey(context); 154 153 } 155 154 -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r11366 r11461 88 88 89 89 private void show(long id, HistoryBrowserDialog dialog) { 90 if (dialogs. values().contains(dialog)) {90 if (dialogs.containsValue(dialog)) { 91 91 show(id); 92 92 } else { … … 98 98 99 99 private void show(long id) { 100 if (dialogs. keySet().contains(id)) {100 if (dialogs.containsKey(id)) { 101 101 dialogs.get(id).toFront(); 102 102 }
Note:
See TracChangeset
for help on using the changeset viewer.