Ignore:
Timestamp:
2020-06-14T20:19:59+02:00 (4 years ago)
Author:
simon04
Message:

see #19334 - https://errorprone.info/bugpattern/StringSplitter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r16630 r16643  
    5050     */
    5151    public static Map<String, String> readTagsByRegexp(String text, String splitRegex, String tagRegex, boolean unescapeTextInQuotes) {
    52          String[] lines = text.split(splitRegex);
     52         String[] lines = text.split(splitRegex, -1);
    5353         Pattern p = Pattern.compile(tagRegex);
    5454         Map<String, String> tags = new LinkedHashMap<>();
Note: See TracChangeset for help on using the changeset viewer.