Ignore:
Timestamp:
2015-05-17T05:48:46+02:00 (10 years ago)
Author:
Don-vip
Message:

Consecutively calls to StringBuffer/StringBuilder .append should reuse the target object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r8374 r8379  
    7878
    7979                StringBuilder result = new StringBuilder();
    80                 result.append(text.substring(0, m.start(2)));
    81                 result.append(leftRight.equals(a) ? b : a);
    82                 result.append(text.substring(m.end(2)));
     80                result.append(text.substring(0, m.start(2)))
     81                      .append(leftRight.equals(a) ? b : a)
     82                      .append(text.substring(m.end(2)));
    8383
    8484                return result.toString();
Note: See TracChangeset for help on using the changeset viewer.