# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\Users\Franz\Documents\NetBeansProjects\JOSM-Plugins\core\src\org\openstreetmap\gui\jmapviewer
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
281 | 281 | error_message = message; |
282 | 282 | } |
283 | 283 | |
| 284 | /** |
| 285 | * Puts the given key/value pair to the metadata of the tile. |
| 286 | * If value is null, the (possibly existing) key/value pair is removed from |
| 287 | * the meta data. |
| 288 | * |
| 289 | * @param key |
| 290 | * @param value |
| 291 | */ |
284 | 292 | public void putValue(String key, String value) { |
285 | | if (value == null || "".equals(value)) { |
| 293 | if (value == null || value.isEmpty()) { |
286 | 294 | if (metadata != null) { |
287 | 295 | metadata.remove(key); |
288 | 296 | } |