Ignore:
Timestamp:
2017-09-13T16:30:27+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - fix deprecations caused by [12840]

File:
1 edited

Legend:

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

    r12635 r12841  
    5757     */
    5858    public static Collection<String> getImageryLayersSites() {
    59         return Main.pref.getCollection("imagery.layers.sites", Arrays.asList(DEFAULT_LAYER_SITES));
     59        return Main.pref.getList("imagery.layers.sites", Arrays.asList(DEFAULT_LAYER_SITES));
    6060    }
    6161
     
    236236        // add new default entries to the user selection
    237237        boolean changed = false;
    238         Collection<String> knownDefaults = new TreeSet<>(Main.pref.getCollection("imagery.layers.default"));
     238        Collection<String> knownDefaults = new TreeSet<>(Main.pref.getList("imagery.layers.default"));
    239239        Collection<String> newKnownDefaults = new TreeSet<>();
    240240        for (ImageryInfo def : defaultLayers) {
     
    279279            newKnownDefaults.addAll(knownDefaults);
    280280        }
    281         Main.pref.putCollection("imagery.layers.default", newKnownDefaults);
     281        Main.pref.putList("imagery.layers.default", new ArrayList<>(newKnownDefaults));
    282282
    283283        // automatically update user entries with same id as a default entry
Note: See TracChangeset for help on using the changeset viewer.