Ignore:
Timestamp:
2010-08-20T22:10:26+02:00 (14 years ago)
Author:
jttt
Message:

Memory leaks, minor changes needed by wmsplugin

File:
1 edited

Legend:

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

    r3246 r3451  
    1616
    1717    public Collection<String> get() {
    18         return Main.pref.getCollection(key, defaultValue);
     18        return Main.pref.getCollection(getKey(), getDefaultValue());
    1919    }
    2020
    2121    public boolean put(Collection<String> value) {
    22         return Main.pref.putCollection(key, value);
     22        return Main.pref.putCollection(getKey(), value);
     23    }
     24
     25    public String getKey() {
     26        return key;
     27    }
     28
     29    public Collection<String> getDefaultValue() {
     30        return defaultValue;
    2331    }
    2432
Note: See TracChangeset for help on using the changeset viewer.