Changeset 11649 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2017-03-02T01:59:40+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/XmlStreamParsingException.java
r11553 r11649 42 42 if (getLocation() == null) 43 43 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())); 45 46 int offset = getLocation().getCharacterOffset(); 46 47 if (offset > -1) { 47 msg += ". "+ tr("{0} bytes have been read", offset);48 sb.append(". ").append(tr("{0} bytes have been read", offset)); 48 49 } 49 return msg;50 return sb.toString(); 50 51 } 51 52 }
Note:
See TracChangeset
for help on using the changeset viewer.