Changeset 12188 in josm


Ignore:
Timestamp:
2017-05-15T23:02:25+02:00 (3 months ago)
Author:
michael2402
Message:

Use OsmUtils constants.

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java

    r11038 r12188  
    3232import org.openstreetmap.josm.data.osm.MultipolygonBuilder.JoinedPolygon;
    3333import org.openstreetmap.josm.data.osm.OsmPrimitive;
     34import org.openstreetmap.josm.data.osm.OsmUtils;
    3435import org.openstreetmap.josm.data.osm.Relation;
    3536import org.openstreetmap.josm.data.osm.RelationMember;
     
    401402            values.remove("natural");
    402403
    403         values.put("area", "yes");
     404        values.put("area", OsmUtils.TRUE_VALUE);
    404405
    405406        List<Command> commands = new ArrayList<>();
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r11893 r12188  
    13521352    public final boolean hasAreaTags() {
    13531353        return hasKey("landuse", "amenity", "building", "building:part")
    1354                 || hasTag("area", "yes")
     1354                || hasTag("area", OsmUtils.TRUE_VALUE)
    13551355                || hasTag("waterway", "riverbank")
    13561356                || hasTagDifferent("leisure", "picnic_table", "slipway", "firepit")
Note: See TracChangeset for help on using the changeset viewer.