Ignore:
Timestamp:
2020-07-17T17:12:54+02:00 (6 years ago)
Author:
GerdP
Message:

see #19180: false positives from tagchecker with single letter differences

  • avoid to produce "Value 'y' for key 'x' is unknown, maybe 'z' is meant?" when x=z produces a deprecated message. It uses all *.mapcss rules which are stored in files ending with deprecated.mapcss, so this will fail if user changed the name to something else, but it should work with e.g. my_deprecated.mapcss
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleIndex.java

    r16357 r16784  
    173173        return get(osm).getRuleCandidates(osm);
    174174    }
     175
     176    /**
     177     * Check if this index is empty.
     178     * @return true if this index is empty.
     179     * @since 16784
     180     */
     181    public boolean isEmpty() {
     182        return nodeRules.isEmpty() && wayRules.isEmpty() && wayNoAreaRules.isEmpty() && relationRules.isEmpty()
     183                && multipolygonRules.isEmpty() && canvasRules.isEmpty();
     184    }
    175185}
Note: See TracChangeset for help on using the changeset viewer.