Minor constant tweak.

This commit is contained in:
Olof Larsson 2015-02-21 08:18:15 +01:00
parent d6bcb13e9c
commit 5430af6567

View File

@ -6,7 +6,11 @@ import java.util.Date;
public class ARDate extends ARAbstractPrimitive<Date> public class ARDate extends ARAbstractPrimitive<Date>
{ {
protected final static DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); // -------------------------------------------- //
// CONSTANTS
// -------------------------------------------- //
public final static DateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
// -------------------------------------------- // // -------------------------------------------- //
// INSTANCE & CONSTRUCT // INSTANCE & CONSTRUCT
@ -28,7 +32,7 @@ public class ARDate extends ARAbstractPrimitive<Date>
@Override @Override
public Date convert(String arg) throws Exception public Date convert(String arg) throws Exception
{ {
return df.parse(arg); return DATE_FORMAT.parse(arg);
} }
} }