minor: fix IntelijIdea violations 'Declaration can have final modifier', 'Method may be static'

This commit is contained in:
Roman Ivanov 2016-07-11 22:25:17 -07:00
parent 44119413b6
commit dc47a404ee
2 changed files with 6 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public class BaseCheckTestSupport {
.toString();
}
protected String getSrcPath(String filename) throws IOException {
protected static String getSrcPath(String filename) throws IOException {
return new File("src/test/java/com/puppycrawl/tools/checkstyle/" + filename)
.getCanonicalPath();
}
@ -105,7 +105,7 @@ public class BaseCheckTestSupport {
verifyAst(expectedTextPrintFileName, actualJavaFileName, false);
}
protected void verifyAst(String expectedTextPrintFileName, String actualJavaFileName,
protected static void verifyAst(String expectedTextPrintFileName, String actualJavaFileName,
boolean withComments) throws Exception {
final String expectedContents = Files.toString(new File(expectedTextPrintFileName),
Charsets.UTF_8).replaceAll("\\\\r\\\\n", "\\\\n");

View File

@ -146,5 +146,9 @@ public class AutomaticBeanTest {
throw new IllegalStateException(privateField + "," + wrong + "," + val + "," + value);
}
public void doSmth() {
privateField = "some value, just for fun";
}
}
}