Changeset 1470 in josm


Ignore:
Timestamp:
2009-03-08T13:53:28+01:00 (13 years ago)
Author:
stoecker
Message:

use getCollection() once more

File:
1 edited

Legend:

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

    r1409 r1470  
    160160     * Initialized by checkTagged()
    161161     */
    162     private static Collection<String> uninteresting = null;
     162    public static Collection<String> uninteresting = null;
    163163
    164164    /**
     
    167167     * Initialized by checkDirectionTagged()
    168168     */
    169     private static Collection<String> directionKeys = null;
     169    public static Collection<String> directionKeys = null;
    170170
    171171    /**
     
    327327        tagged = false;
    328328        if(uninteresting == null)
    329             uninteresting = new HashSet<String>(Arrays.asList(Main.pref.get("tags.uninteresting",
    330             "source;note;converted_by;created_by").split(";")));
     329            uninteresting = Main.pref.getCollection("tags.uninteresting",
     330            Arrays.asList(new String[]{"source","note","converted_by","created_by"}));
    331331        if (keys != null) {
    332332            for (Entry<String,String> e : keys.entrySet()) {
     
    345345        hasDirectionKeys = false;
    346346        if(directionKeys == null)
    347             directionKeys = new HashSet<String>(Arrays.asList(Main.pref.get("tags.direction",
    348             "oneway;incline;incline_steep;aerialway").split(";")));
     347            directionKeys = Main.pref.getCollection("tags.direction",
     348            Arrays.asList(new String[]{"oneway","incline","incline_steep","aerialway"}));
    349349        if (keys != null) {
    350350            for (Entry<String,String> e : keys.entrySet()) {
Note: See TracChangeset for help on using the changeset viewer.