Changeset 11521 in josm for trunk/src


Ignore:
Timestamp:
2017-01-31T23:40:09+01:00 (3 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:ISB_INEFFICIENT_STRING_BUFFERING - Performance - Method passes simple concatenating string in StringBuffer or StringBuilder append

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java

    r11517 r11521  
    9090     */
    9191    public static void log(String s) {
    92         summary.append(s);
    93         summary.append('\n');
     92        summary.append(s).append('\n');
    9493    }
    9594
     
    101100     */
    102101    public static void log(Exception e, String s) {
    103         summary.append(s + ' ' + Main.getErrorMessage(e));
    104         summary.append('\n');
     102        summary.append(s).append(' ').append(Main.getErrorMessage(e)).append('\n');
    105103    }
    106104
Note: See TracChangeset for help on using the changeset viewer.