Changeset 5467 in josm for trunk/src


Ignore:
Timestamp:
2012-08-21T09:17:19+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #7982 - Revert unwanted Preferences.getBoolean change that prevents some plugins to start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r5464 r5467  
    450450    }
    451451
    452     synchronized public Boolean getBoolean(final String key) {
     452    synchronized public boolean getBoolean(final String key) {
    453453        putDefault(key, null);
    454454        return properties.containsKey(key) ? Boolean.parseBoolean(properties.get(key)) : false;
    455455    }
    456456
    457     synchronized public Boolean getBoolean(final String key, final boolean def) {
     457    synchronized public boolean getBoolean(final String key, final boolean def) {
    458458        putDefault(key, Boolean.toString(def));
    459459        return properties.containsKey(key) ? Boolean.parseBoolean(properties.get(key)) : def;
    460460    }
    461461
    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) {
    463463        putDefault(key, Boolean.toString(def));
    464464        String skey = key+"."+specName;
Note: See TracChangeset for help on using the changeset viewer.