Changeset 15422 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2019-10-05T16:29:51+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r15419 r15422 817 817 /** 818 818 * Reads the Gpx key from the given {@link OsmPrimitive}, with or without "gpx:" prefix 819 * @param node820 * @param key 819 * @param prim OSM primitive 820 * @param key GPX key without prefix 821 821 * @return the value or <code>null</code> if not present 822 822 * @since 15419 823 823 */ 824 public static String gpxVal(OsmPrimitive node, String key) {825 return Optional.ofNullable( node.get(GpxConstants.GPX_PREFIX + key)).orElse(node.get(key));824 public static String gpxVal(OsmPrimitive prim, String key) { 825 return Optional.ofNullable(prim.get(GpxConstants.GPX_PREFIX + key)).orElse(prim.get(key)); 826 826 } 827 827
Note:
See TracChangeset
for help on using the changeset viewer.