Ignore:
Timestamp:
2013-08-11T21:09:08+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8951 - fix clearing of primitive metadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r6105 r6140  
    152152     * Constructs an identical clone of the argument.
    153153     * @param clone The node to clone
    154      * @param clearId If true, set version to 0 and id to new unique value
    155      */
    156     public Node(Node clone, boolean clearId) {
     154     * @param clearMetadata If {@code true}, clears the OSM id and other metadata as defined by {@link #clearOsmMetadata}. If {@code false}, does nothing
     155     */
     156    public Node(Node clone, boolean clearMetadata) {
    157157        super(clone.getUniqueId(), true /* allow negative IDs */);
    158158        cloneFrom(clone);
    159         if (clearId) {
    160             clearOsmId();
     159        if (clearMetadata) {
     160            clearOsmMetadata();
    161161        }
    162162    }
Note: See TracChangeset for help on using the changeset viewer.