Ticket #7734: Tile.diff

File Tile.diff, 1.0 KB (added by Locked, 12 years ago)

the diff for the enhancement

  • Tile.java

    # 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.
     
    281281        error_message = message;
    282282    }
    283283
     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     */
    284292    public void putValue(String key, String value) {
    285         if (value == null || "".equals(value)) {
     293        if (value == null || value.isEmpty()) {
    286294            if (metadata != null) {
    287295                metadata.remove(key);
    288296            }