Changeset 11291 in josm for trunk/src


Ignore:
Timestamp:
2016-11-22T15:42:45+01:00 (3 years ago)
Author:
simon04
Message:

see #14025 - Store workinprogress/uninteresting/discardable keys in HashSet

File:
1 edited

Legend:

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

    r11272 r11291  
    686686            l.addAll(getDiscardableKeys());
    687687            l.addAll(getWorkInProgressKeys());
    688             uninteresting = Main.pref.getCollection("tags.uninteresting", l);
     688            uninteresting = new HashSet<>(Main.pref.getCollection("tags.uninteresting", l));
    689689        }
    690690        return uninteresting;
     
    698698    public static Collection<String> getDiscardableKeys() {
    699699        if (discardable == null) {
    700             discardable = Main.pref.getCollection("tags.discardable",
     700            discardable = new HashSet<>(Main.pref.getCollection("tags.discardable",
    701701                    Arrays.asList(
    702702                            "created_by",
     
    743743                            "yh:WIDTH",
    744744                            "yh:WIDTH_RANK"
    745                         ));
     745                        )));
    746746        }
    747747        return discardable;
     
    756756    public static Collection<String> getWorkInProgressKeys() {
    757757        if (workinprogress == null) {
    758             workinprogress = Main.pref.getCollection("tags.workinprogress",
    759                     Arrays.asList("note", "fixme", "FIXME"));
     758            workinprogress = new HashSet<>(Main.pref.getCollection("tags.workinprogress",
     759                    Arrays.asList("note", "fixme", "FIXME")));
    760760        }
    761761        return workinprogress;
Note: See TracChangeset for help on using the changeset viewer.