Ignore:
Timestamp:
2014-02-03T19:26:05+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues introduced recently

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r6798 r6806  
    6565    public static final Charset UTF_8 = Charset.forName("UTF-8");
    6666
     67    private static final int MILLIS_OF_SECOND = 1000;
     68    private static final int MILLIS_OF_MINUTE = 60000;
     69    private static final int MILLIS_OF_HOUR = 3600000;
     70    private static final int MILLIS_OF_DAY = 86400000;
     71
    6772    /**
    6873     * Tests whether {@code predicate} applies to at least one elements from {@code collection}.
     
    830835     */
    831836    public static String getDurationString(long elapsedTime) throws IllegalArgumentException {
    832         final int MILLIS_OF_SECOND = 1000;
    833         final int MILLIS_OF_MINUTE = 60000;
    834         final int MILLIS_OF_HOUR = 3600000;
    835         final int MILLIS_OF_DAY = 86400000;
    836837        if (elapsedTime < 0) {
    837838            throw new IllegalArgumentException("elapsedTime must be > 0");
Note: See TracChangeset for help on using the changeset viewer.