- Timestamp:
- 2015-12-29T21:29:58+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r9206 r9216 112 112 113 113 /** 114 * Version of the loaded data file, required for updates 115 */ 116 private int loadedVersion = 0; 117 118 /** 114 119 * Internal storage for the cache directory. 115 120 */ … … 1639 1644 while (true) { 1640 1645 if (event == XMLStreamConstants.START_ELEMENT) { 1646 try 1647 { 1648 loadedVersion = Integer.parseInt(parser.getAttributeValue(null, "version")); 1649 } catch (Exception e) { 1650 } 1641 1651 parseRoot(); 1642 1652 } else if (event == XMLStreamConstants.END_ELEMENT) { … … 1878 1888 // update old style JOSM server links to use zip now, see #10581, #12189 1879 1889 // actually also cache and mirror entries should be cleared 1880 if ( getInteger("josm.version", 0 /* current version avoids this value being written in #save() */) < 9206) {1890 if (loadedVersion < 9216) { 1881 1891 for (String key: new String[]{"mappaint.style.entries", "taggingpreset.entries"}) { 1882 1892 Collection<Map<String, String>> data = getListOfStructs(key, (Collection<Map<String, String>>) null);
Note:
See TracChangeset
for help on using the changeset viewer.