Skip to content

Commit 3e386b8

Browse files
committed
(#194) Fix numbers decimal separator - Locale.US
1 parent 6bd060c commit 3e386b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/org/scoverage/CoverageChecker.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CoverageChecker {
7979

8080
@VisibleForTesting
8181
protected static String errorMsg(double overallRate, double minimumRate, CoverageType type) {
82-
DecimalFormat df = new DecimalFormat("#.##", DecimalFormatSymbols.getInstance(Locale.ENGLISH))
82+
DecimalFormat df = new DecimalFormat("#.##", DecimalFormatSymbols.getInstance(Locale.US))
8383
String actual = df.format(overallRate * 100)
8484
String expected = df.format(minimumRate * 100)
8585
"Only $actual% of project is covered by tests instead of $expected% (coverageType: $type)"

0 commit comments

Comments
 (0)