Ignore:
Timestamp:
2018-04-04T19:47:35+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16145 - remove white spaces from key/values when pasting tags

File:
1 edited

Legend:

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

    r10737 r13597  
    145145     * @return The string without leading, trailing or multiple inner whitespaces
    146146     * @since 6699
    147      */
     147     * @deprecated since 13597. Use {@link Utils#removeWhiteSpaces(String)} instead
     148     */
     149    @Deprecated
    148150    public static String removeWhiteSpaces(String s) {
    149         if (s == null || s.isEmpty()) {
    150             return s;
    151         }
    152         return Utils.strip(s).replaceAll("\\s+", " ");
     151        return Utils.removeWhiteSpaces(s);
    153152    }
    154153
Note: See TracChangeset for help on using the changeset viewer.