- Timestamp:
- 2020-02-24T22:04:33+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r15841 r15926 79 79 // Pending upstream patch: https://issues.apache.org/jira/projects/JCS/issues/JCS-200 80 80 // Pending upstream patch: https://issues.apache.org/jira/projects/JCS/issues/JCS-201 81 if ( msg.equals("No configuration settings found. Using hardcoded default values for all pools.")81 if ("No configuration settings found. Using hardcoded default values for all pools.".equals(msg) 82 82 || (msg.startsWith("Region") && msg.endsWith("Resetting cache"))) { // "Region [TMS_BLOCK_v2] Resetting cache" 83 83 Logging.debug(msg); -
trunk/src/org/openstreetmap/josm/gui/autofilter/AutoFilterRule.java
r15893 r15926 137 137 }); 138 138 } 139 return PROP_AUTO_FILTER_DEFAULTS.get() ? defaultValueSupplier.apply(osm) : IntStream.empty();139 return Boolean.TRUE.equals(PROP_AUTO_FILTER_DEFAULTS.get()) ? defaultValueSupplier.apply(osm) : IntStream.empty(); 140 140 } 141 141 -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r15856 r15926 352 352 return tab.selectSubTab(sub); 353 353 } catch (NoSuchElementException ignore) { 354 Logging.trace(ignore); 354 355 return false; 355 356 } -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelector.java
r15909 r15926 95 95 PresetClassification(TaggingPreset preset) { 96 96 this.preset = preset; 97 Set<String> group s= new HashSet<>();98 Set<String> name s= new HashSet<>();99 Set<String> tag s= new HashSet<>();97 Set<String> groupSet = new HashSet<>(); 98 Set<String> nameSet = new HashSet<>(); 99 Set<String> tagSet = new HashSet<>(); 100 100 TaggingPreset group = preset.group; 101 101 while (group != null) { 102 addLocaleNames(group s, group);102 addLocaleNames(groupSet, group); 103 103 group = group.group; 104 104 } 105 addLocaleNames(name s, preset);105 addLocaleNames(nameSet, preset); 106 106 for (TaggingPresetItem item: preset.data) { 107 107 if (item instanceof KeyedItem) { 108 tag s.add(((KeyedItem) item).key);108 tagSet.add(((KeyedItem) item).key); 109 109 if (item instanceof ComboMultiSelect) { 110 110 final ComboMultiSelect cms = (ComboMultiSelect) item; 111 111 if (Boolean.parseBoolean(cms.values_searchable)) { 112 tag s.addAll(cms.getDisplayValues());112 tagSet.addAll(cms.getDisplayValues()); 113 113 } 114 114 } 115 115 if (item instanceof Key && ((Key) item).value != null) { 116 tag s.add(((Key) item).value);116 tagSet.add(((Key) item).value); 117 117 } 118 118 } else if (item instanceof Roles) { 119 119 for (Role role : ((Roles) item).roles) { 120 tag s.add(role.key);121 } 122 } 123 } 124 this.groups = Utils.toUnmodifiableList(group s);125 this.names = Utils.toUnmodifiableList(name s);126 this.tags = Utils.toUnmodifiableList(tag s);120 tagSet.add(role.key); 121 } 122 } 123 } 124 this.groups = Utils.toUnmodifiableList(groupSet); 125 this.names = Utils.toUnmodifiableList(nameSet); 126 this.tags = Utils.toUnmodifiableList(tagSet); 127 127 } 128 128 -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r15896 r15926 1517 1517 1518 1518 /** 1519 * Returns an {@link ImageIcon} for the given OSM object, at the specified size. 1520 * This is a slow operation. 1519 1521 * @param primitive Object for which an icon shall be fetched. The icon is chosen based on tags. 1520 1522 * @param iconSize Target size of icon. Icon is padded if required. … … 1527 1529 1528 1530 /** 1531 * Returns an {@link ImageIcon} for the given OSM object, at the specified size. 1532 * This is a slow operation. 1529 1533 * @param primitive Object for which an icon shall be fetched. The icon is chosen based on tags. 1530 1534 * @param iconSize Target size of icon. Icon is padded if required.
Note:
See TracChangeset
for help on using the changeset viewer.