Changeset 11608 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
- Timestamp:
- 2017-02-25T03:14:20+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
r11432 r11608 165 165 */ 166 166 private static boolean isPowerIn(OsmPrimitive p, Collection<String> values) { 167 String v = p.get("power"); 168 return v != null && values != null && values.contains(v); 167 return p.hasTag("power", values); 169 168 } 170 169 … … 176 175 */ 177 176 private static boolean isBuildingIn(OsmPrimitive p, Collection<String> values) { 178 String v = p.get("building"); 179 return v != null && values != null && values.contains(v); 177 return p.hasTag("building", values); 180 178 } 181 179 }
Note:
See TracChangeset
for help on using the changeset viewer.
