Use default locale when formatting strings
This commit is contained in:
parent
5a0713025c
commit
2e7dd7b62e
3 changed files with 8 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package com.kabouzeid.gramophone.helper;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Simple thread safe stop watch.
|
||||
*
|
||||
|
|
@ -77,6 +79,6 @@ public class StopWatch {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("%d millis", getElapsedTime());
|
||||
return String.format(Locale.getDefault(), "%d millis", getElapsedTime());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue