Ignore:
Timestamp:
2017-03-02T01:59:40+01:00 (3 years ago)
Author:
Don-vip
Message:

sonar - pmd:UseStringBufferForStringAppends

File:
1 edited

Legend:

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

    r11553 r11649  
    4242        if (getLocation() == null)
    4343            return msg;
    44         msg += ' ' + tr("(at line {0}, column {1})", getLocation().getLineNumber(), getLocation().getColumnNumber());
     44        StringBuilder sb = new StringBuilder(msg).append(' ')
     45                .append(tr("(at line {0}, column {1})", getLocation().getLineNumber(), getLocation().getColumnNumber()));
    4546        int offset = getLocation().getCharacterOffset();
    4647        if (offset > -1) {
    47             msg += ". "+ tr("{0} bytes have been read", offset);
     48            sb.append(". ").append(tr("{0} bytes have been read", offset));
    4849        }
    49         return msg;
     50        return sb.toString();
    5051    }
    5152}
Note: See TracChangeset for help on using the changeset viewer.