diff --git a/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java b/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java index af8f51fab..d2fbd6dd2 100644 --- a/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java +++ b/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java @@ -31,7 +31,7 @@ public class CheckerTest private final ByteArrayOutputStream mBAOS = new ByteArrayOutputStream(); private final PrintStream mStream = new PrintStream(mBAOS); - private Configuration mConfig = null; + private final Configuration mConfig = new Configuration(); public CheckerTest(String name) { @@ -41,7 +41,6 @@ public class CheckerTest protected void setUp() throws Exception { - mConfig = new Configuration(); mConfig.setHeaderFile(getPath("java.header")); }