Silence warnings

This commit is contained in:
Martin Fietz 2018-01-10 22:50:56 +01:00
parent c524791c3c
commit c4d19b7163
1 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public final class Converter {
rest -= m * MINUTES_MIL; rest -= m * MINUTES_MIL;
int s = rest / SECONDS_MIL; int s = rest / SECONDS_MIL;
return String.format("%02d:%02d:%02d", h, m, s); return String.format(Locale.getDefault(), "%02d:%02d:%02d", h, m, s);
} }
/** Converts milliseconds to a string containing hours and minutes */ /** Converts milliseconds to a string containing hours and minutes */
@ -81,7 +81,7 @@ public final class Converter {
int rest = duration - h * HOURS_MIL; int rest = duration - h * HOURS_MIL;
int m = rest / MINUTES_MIL; int m = rest / MINUTES_MIL;
return String.format("%02d:%02d", h, m); return String.format(Locale.getDefault(), "%02d:%02d", h, m);
} }
/** Converts long duration string (HH:MM:SS) to milliseconds. */ /** Converts long duration string (HH:MM:SS) to milliseconds. */