diff --git a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java index 3ac4b49f8..214ee8fa4 100644 --- a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java @@ -56,7 +56,7 @@ public class FileTabCharacterTest extends BaseCheckTestSupport{ /** * Creates a configuration that is functionally close to that in the docs. */ - private DefaultConfiguration createConfig(boolean verbose) + private static DefaultConfiguration createConfig(boolean verbose) { final DefaultConfiguration checkConfig = createCheckConfig(FileTabCharacterCheck.class); diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/api/AutomaticBeanTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/api/AutomaticBeanTest.java index 6d50dc700..f9ee63971 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/api/AutomaticBeanTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/api/AutomaticBeanTest.java @@ -115,7 +115,7 @@ public class AutomaticBeanTest { } public void setExceptionalMethod(String value) { - throw new IllegalStateException("for UT"); + throw new IllegalStateException(wrong); } public void setName(String name) { diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/api/DetailASTTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/api/DetailASTTest.java index f0b141cde..cdab379c6 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/api/DetailASTTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/api/DetailASTTest.java @@ -110,7 +110,7 @@ public class DetailASTTest { checkDir(new File("src/test/resources/com/puppycrawl/tools/checkstyle")); } - private void checkDir(File dir) throws Exception { + private static void checkDir(File dir) throws Exception { File[] files = dir.listFiles(new FileFilter() { @Override public boolean accept(File file) {