TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Design21Checked automatically with code checker

Synopsis:When instantiating a SimpleDateFormat object, specify a Locale
Language:Java
Severity Level:1
Category:Design


Description:
Be sure to specify a Locale when creating a new instance of SimpleDateFormat.
public class Foo {
 // Should specify Locale.US (or whatever)
 private SimpleDateFormat sdf = new SimpleDateFormat("pattern");
}