- Timestamp:
- 2012-08-21T09:17:19+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r5464 r5467 450 450 } 451 451 452 synchronized public Boolean getBoolean(final String key) {452 synchronized public boolean getBoolean(final String key) { 453 453 putDefault(key, null); 454 454 return properties.containsKey(key) ? Boolean.parseBoolean(properties.get(key)) : false; 455 455 } 456 456 457 synchronized public Boolean getBoolean(final String key, final boolean def) {457 synchronized public boolean getBoolean(final String key, final boolean def) { 458 458 putDefault(key, Boolean.toString(def)); 459 459 return properties.containsKey(key) ? Boolean.parseBoolean(properties.get(key)) : def; 460 460 } 461 461 462 synchronized public Boolean getBoolean(final String key, final String specName, final boolean def) {462 synchronized public boolean getBoolean(final String key, final String specName, final boolean def) { 463 463 putDefault(key, Boolean.toString(def)); 464 464 String skey = key+"."+specName;
Note:
See TracChangeset
for help on using the changeset viewer.