Changeset 11113 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2016-10-09T23:39:40+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - pmd:AppendCharacterWithChar - Avoid appending characters as strings in StringBuffer.append

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r11102 r11113  
    178178            }
    179179        }
    180         text.append("\n");
     180        text.append('\n');
    181181        appendCollection(text, "Plugins", Utils.transform(PluginHandler.getBugReportInformation(), i -> "+ " + i));
    182182        appendCollection(text, "Tagging presets", getCustomUrls(TaggingPresetPreference.PresetPrefHelper.INSTANCE));
  • trunk/src/org/openstreetmap/josm/gui/datatransfer/PrimitiveTransferable.java

    r10812 r11113  
    9191        for (PrimitiveData primitive : primitives.getDirectlyAdded()) {
    9292            if (sb.length() > 0) {
    93                 sb.append("\n");
     93                sb.append('\n');
    9494            }
    9595            sb.append(OsmPrimitiveType.from(primitive).getAPIName()).append(' ').append(primitive.getId());
Note: See TracChangeset for help on using the changeset viewer.