Ignore:
Timestamp:
2016-05-31T00:01:20+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - various code cleanup fixes

File:
1 edited

Legend:

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

    r9751 r10305  
    8585
    8686    private void updatePanel(SaveLayerInfo info) {
    87         StringBuilder sb = new StringBuilder();
    88         sb.append("<html>");
    89         sb.append(tr("Select which actions to perform for this layer, if you click the leftmost button."));
     87        StringBuilder sb = new StringBuilder(128)
     88            .append("<html>")
     89            .append(tr("Select which actions to perform for this layer, if you click the leftmost button."));
    9090        removeAll();
    9191        if (info != null) {
    9292            if (info.isUploadable()) {
    93                 sb.append("<br/>");
    94                 sb.append(tr("Check \"Upload\" to upload the changes to the OSM server."));
     93                sb.append("<br/>")
     94                  .append(tr("Check \"Upload\" to upload the changes to the OSM server."));
    9595                add(checkBoxes[0], GBC.eol().fill(GBC.HORIZONTAL));
    9696            }
    9797            if (info.isSavable()) {
    98                 sb.append("<br/>");
    99                 sb.append(tr("Check \"Save\" to save the layer to the file specified on the left."));
     98                sb.append("<br/>")
     99                  .append(tr("Check \"Save\" to save the layer to the file specified on the left."));
    100100                add(checkBoxes[1], GBC.eol().fill(GBC.HORIZONTAL));
    101101            }
Note: See TracChangeset for help on using the changeset viewer.