Ignore:
Timestamp:
2016-05-28T23:16:07+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2275 - Format specifiers should be used instead of string concatenation

File:
1 edited

Legend:

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

    r10215 r10292  
    268268            return format.format(v) + ' ' + unit;
    269269        }
    270         return String.format(Locale.US, "%." + (v < 9.999999 ? 2 : 1) + "f %s", v, unit);
     270        return String.format(Locale.US, v < 9.999999 ? "%.2f %s" : "%.1f %s", v, unit);
    271271    }
    272272}
Note: See TracChangeset for help on using the changeset viewer.