Ticket #8211: deprecated.diff

File deprecated.diff, 1.7 KB (added by bastiK, 13 years ago)

Ok, you had your fun... ;)

  • src/org/openstreetmap/josm/data/validation/tests/DeprecatedTags.java

     
    8080        checks.add(new DeprecationCheck(2115).
    8181                testAndRemove("bicycle_parking", "sheffield").
    8282                add("bicycle_parking", "stands"));
     83        checks.add(new DeprecationCheck(2116).
     84                testAndRemove("type", "multipolygon").
     85                testAndRemove("boundary", "administrative").
     86                add("type", "boundary"));
    8387    }
    8488
    8589    public void visit(OsmPrimitive p) {
  • src/org/openstreetmap/josm/actions/upload/FixDataHook.java

     
    4141        deprecated.add(new FixDataTag("oneway",  "true",  "oneway",  "yes"));
    4242        deprecated.add(new FixDataTag("oneway",  "1",     "oneway",  "yes"));
    4343        deprecated.add(new FixDataTag("highway", "stile", "barrier", "stile"));
    44         deprecated.add(new FixData() {
    45             public boolean fixKeys(Map<String, String> keys, OsmPrimitive osm) {
    46                 if(osm instanceof Relation && "multipolygon".equals(keys.get("type")) && "administrative".equals(keys.get("boundary"))) {
    47                     keys.put("type", "boundary");
    48                     return true;
    49                 }
    50                 return false;
    51             }
    52         });
    5344    }
    5445
    5546    /**