Changeset 16055 in josm for trunk/src/org


Ignore:
Timestamp:
2020-03-07T13:08:07+01:00 (5 years ago)
Author:
simon04
Message:

ImageProvider.getPadded: use GetPaddedOptions.DEFAULT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r15926 r16055  
    3535import java.util.Base64;
    3636import java.util.Collection;
     37import java.util.Collections;
    3738import java.util.Comparator;
    3839import java.util.EnumMap;
    39 import java.util.EnumSet;
    4040import java.util.HashMap;
    4141import java.util.Hashtable;
     
    15131513         * Exclude tagging preset icons for {@linkplain OsmPrimitiveType#WAY ways}.
    15141514         */
    1515         NO_WAY_PRESETS,
     1515        NO_WAY_PRESETS;
     1516
     1517        private static final Collection<GetPaddedOptions> DEFAULT = Collections.singleton(GetPaddedOptions.NO_WAY_PRESETS);
    15161518    }
    15171519
     
    15251527     */
    15261528    public static ImageIcon getPadded(OsmPrimitive primitive, Dimension iconSize) {
    1527         return getPadded(primitive, iconSize, EnumSet.of(GetPaddedOptions.NO_WAY_PRESETS));
     1529        return getPadded(primitive, iconSize, GetPaddedOptions.DEFAULT);
    15281530    }
    15291531
Note: See TracChangeset for help on using the changeset viewer.