範例
public class
ClassA
{{
public void
test () {
SimpleDateFormat sdf =
new
SimpleDateFormat();
}
}
解決方案
一律新增一個 Locale 引數到 SimpleDateFormat 變數宣告中
public class
ClassA
{{
public void
test () {
Locale loc = Locale.
US
;
SimpleDateFormat sdf =
new
SimpleDateFormat("", loc);
}
}