Changeset 12160 in josm


Ignore:
Timestamp:
2017-05-15T15:33:34+02:00 (13 days ago)
Author:
michael2402
Message:

Fix PMD Warnings on StringBuilder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r12156 r12160  
    488488        int rels = counter.relations - counter.deletedRelations;
    489489
    490         StringBuilder tooltip = new StringBuilder();
    491         tooltip.append("<html>");
    492         tooltip.append(trn("{0} node", "{0} nodes", nodes, nodes));
    493         tooltip.append("<br>");
    494         tooltip.append(trn("{0} way", "{0} ways", ways, ways));
    495         tooltip.append("<br>");
    496         tooltip.append(trn("{0} relation", "{0} relations", rels, rels));
     490        StringBuilder tooltip = new StringBuilder("<html>")
     491                .append(trn("{0} node", "{0} nodes", nodes, nodes))
     492                .append("<br>")
     493                .append(trn("{0} way", "{0} ways", ways, ways))
     494                .append("<br>")
     495                .append(trn("{0} relation", "{0} relations", rels, rels));
    497496
    498497        File f = getAssociatedFile();
    499498        if (f != null) {
    500             tooltip.append("<br>");
    501             tooltip.append(f.getPath());
     499            tooltip.append("<br>").append(f.getPath());
    502500        }
    503501        tooltip.append("</html>");
Note: See TracChangeset for help on using the changeset viewer.