Ignore:
Timestamp:
2015-10-10T14:08:30+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - squid:S2131 - Primitives should not be boxed just for "String" conversion

File:
1 edited

Legend:

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

    r8846 r8848  
    7171        long minutes_left = ms_left / MSECS_PER_MINUTE;
    7272        long seconds_left = (ms_left / MSECS_PER_SECOND) % SECONDS_PER_MINUTE;
    73         String time_left_str = Long.toString(minutes_left) + ':';
     73        StringBuilder time_left_str = new StringBuilder().append(minutes_left).append(':');
    7474        if (seconds_left < 10) {
    75             time_left_str += '0';
    76         }
    77         return time_left_str + Long.toString(seconds_left);
     75            time_left_str.append('0');
     76        }
     77        return time_left_str.append(seconds_left).toString();
    7878    }
    7979
Note: See TracChangeset for help on using the changeset viewer.