# 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.
Index: Tile.java
--- Tile.java Base (BASE)
+++ Tile.java Locally Modified (Based On LOCAL)
@@ -281,8 +281,16 @@
         error_message = message;
     }
 
+    /**
+     * Puts the given key/value pair to the metadata of the tile.
+     * If value is null, the (possibly existing) key/value pair is removed from 
+     * the meta data.
+     * 
+     * @param key
+     * @param value 
+     */
     public void putValue(String key, String value) {
-        if (value == null || "".equals(value)) {
+        if (value == null || value.isEmpty()) {
             if (metadata != null) {
                 metadata.remove(key);
             }
