Changeset 17339 in josm for trunk/src


Ignore:
Timestamp:
2020-11-23T20:25:08+01:00 (4 years ago)
Author:
simon04
Message:

https://errorprone.info/bugpattern/StringSplitter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r17318 r17339  
    349349            String hashtags = dataSet.getChangeSetTags().get("hashtags");
    350350            if (hashtags != null) {
    351                 for (String hashtag : hashtags.split(";")) {
     351                for (String hashtag : hashtags.split(";", -1)) {
    352352                    String sanitizedHashtag = hashtag.startsWith("#") ? hashtag : "#" + hashtag;
    353353                    if (!result.contains(sanitizedHashtag)) {
Note: See TracChangeset for help on using the changeset viewer.