@@ -65,7 +65,7 @@ public final class FileLoggerModuleTest {
65
65
public void testFileMessage () throws IOException {
66
66
67
67
/* Get singletong instance of File Logger Module */
68
- final FileLoggerModule fileLoggerModule = FileLoggerModule .getSingleton ();
68
+ final var fileLoggerModule = FileLoggerModule .getSingleton ();
69
69
70
70
/* Prepare the essential sub modules, to perform the sequence of jobs */
71
71
fileLoggerModule .prepare ();
@@ -89,7 +89,7 @@ public void testFileMessage() throws IOException {
89
89
public void testNoFileMessage () throws IOException {
90
90
91
91
/* Get singletong instance of File Logger Module */
92
- final FileLoggerModule fileLoggerModule = FileLoggerModule .getSingleton ();
92
+ final var fileLoggerModule = FileLoggerModule .getSingleton ();
93
93
94
94
/* Prepare the essential sub modules, to perform the sequence of jobs */
95
95
fileLoggerModule .prepare ();
@@ -111,7 +111,7 @@ public void testNoFileMessage() throws IOException {
111
111
public void testFileErrorMessage () throws FileNotFoundException {
112
112
113
113
/* Get singletong instance of File Logger Module */
114
- final FileLoggerModule fileLoggerModule = FileLoggerModule .getSingleton ();
114
+ final var fileLoggerModule = FileLoggerModule .getSingleton ();
115
115
116
116
/* Prepare the essential sub modules, to perform the sequence of jobs */
117
117
fileLoggerModule .prepare ();
@@ -136,7 +136,7 @@ public void testFileErrorMessage() throws FileNotFoundException {
136
136
public void testNoFileErrorMessage () throws FileNotFoundException {
137
137
138
138
/* Get singletong instance of File Logger Module */
139
- final FileLoggerModule fileLoggerModule = FileLoggerModule .getSingleton ();
139
+ final var fileLoggerModule = FileLoggerModule .getSingleton ();
140
140
141
141
/* Prepare the essential sub modules, to perform the sequence of jobs */
142
142
fileLoggerModule .prepare ();
@@ -157,7 +157,7 @@ public void testNoFileErrorMessage() throws FileNotFoundException {
157
157
private static final String readFirstLine (final String file ) {
158
158
159
159
String firstLine = null ;
160
- try (BufferedReader bufferedReader = new BufferedReader (new FileReader (file ))) {
160
+ try (var bufferedReader = new BufferedReader (new FileReader (file ))) {
161
161
162
162
while (bufferedReader .ready ()) {
163
163
0 commit comments