Skip to content

Commit 3a358b1

Browse files
committed
t move static initialisation to end of static fields
1 parent 0106b34 commit 3a358b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

approvaltests-util/src/main/java/com/spun/util/parser/TemplateDate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
public class TemplateDate
1212
{
13-
public static final TemplateDate INSTANCE = new TemplateDate();
1413
public static final class FORMATS
1514
{
1615
public static final DateFormat DATE_SHORT_DAY = new SimpleDateFormat("EEE MM/dd/yyyy");
@@ -26,8 +25,9 @@ public static final class FORMATS
2625
public static final DateFormat TIME_MILLI = new SimpleDateFormat("H:mm:ss:SSS");
2726
}
2827
//private static DateFormat dateTimeFormat = DateFormat.getDateTimeInstance(DateFormat.FULL ,DateFormat.SHORT);
29-
private Date frozen = null;
30-
private DateDifference difference = null;
28+
public static final TemplateDate INSTANCE = new TemplateDate();
29+
private Date frozen = null;
30+
private DateDifference difference = null;
3131
public TemplateDate()
3232
{
3333
}
@@ -169,4 +169,4 @@ public String getDateAndTime()
169169
{
170170
return getDateAndTime("default", "default");
171171
}
172-
}
172+
}

0 commit comments

Comments
 (0)