Changeset 15422 in josm


Ignore:
Timestamp:
2019-10-05T16:29:51+02:00 (17 months ago)
Author:
Don-vip
Message:

see #2760 - javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r15419 r15422  
    817817    /**
    818818     * Reads the Gpx key from the given {@link OsmPrimitive}, with or without "gpx:" prefix
    819      * @param node
    820      * @param key
     819     * @param prim OSM primitive
     820     * @param key GPX key without prefix
    821821     * @return the value or <code>null</code> if not present
    822822     * @since 15419
    823823     */
    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));
    826826    }
    827827
Note: See TracChangeset for help on using the changeset viewer.