Changeset 7783 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2014-12-10T22:07:39+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r7509 r7783 18 18 import java.util.concurrent.atomic.AtomicLong; 19 19 20 import org.openstreetmap.josm.tools.Utils; 21 20 22 /** 21 23 * Abstract class to represent common features of the datatypes primitives. … … 509 511 * removes the key and behaves like {@link #remove(String)}. 510 512 * 511 * @param key The key, for which the value is to be set. Can be null, does nothing in this case. 513 * @param key The key, for which the value is to be set. Can be null or empty, does nothing in this case. 512 514 * @param value The value for the key. If null, removes the respective key/value pair. 513 515 * … … 517 519 public void put(String key, String value) { 518 520 Map<String, String> originalKeys = getKeys(); 519 if (key == null) 521 if (key == null || Utils.strip(key).isEmpty()) 520 522 return; 521 523 else if (value == null) {
Note:
See TracChangeset
for help on using the changeset viewer.
