Changeset 12865 in josm for trunk/src/org/openstreetmap/josm/data/cache/CacheEntryAttributes.java
- Timestamp:
- 2017-09-15T01:20:41+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/CacheEntryAttributes.java
r12620 r12865 89 89 */ 90 90 private long getLongAttr(String key) { 91 String val = attrs.get(key);92 if (val == null) {93 attrs.put(key, "0");94 return 0;95 }96 91 try { 97 return Long.parseLong( val);92 return Long.parseLong(attrs.computeIfAbsent(key, k -> "0")); 98 93 } catch (NumberFormatException e) { 99 94 attrs.put(key, "0");
Note:
See TracChangeset
for help on using the changeset viewer.