Changeset 11523 in josm
- Timestamp:
- 2017-02-01T00:45:49+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/Capabilities.java
r11453 r11523 31 31 * <tracepoints per_page="5000"/> 32 32 * <waynodes maximum="2000"/> 33 * <changesets maximum_elements=" 50000"/>33 * <changesets maximum_elements="10000"/> 34 34 * <timeout seconds="300"/> 35 * <status database="online" api="online" gpx="online"/> 35 36 * </api> 36 37 * <policy> … … 132 133 } else { 133 134 if (!capabilities.containsKey(element)) { 134 Map<String, String> h = new HashMap<>(); 135 capabilities.put(element, h); 136 } 137 Map<String, String> e = capabilities.get(element); 138 e.put(attribute, value); 135 capabilities.put(element, new HashMap<>()); 136 } 137 capabilities.get(element).put(attribute, value); 139 138 } 140 139 } … … 155 154 public boolean supportsVersion(String version) { 156 155 return get("version", "minimum").compareTo(version) <= 0 157 && get("version", "maximum").compareTo(version) >= 0; 156 && get("version", "maximum").compareTo(version) >= 0; 158 157 } 159 158
Note:
See TracChangeset
for help on using the changeset viewer.