minor: fix IntelijIdea violations 'Declaration can have final modifier', 'Method may be static'
This commit is contained in:
parent
44119413b6
commit
dc47a404ee
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -146,5 +146,9 @@ public class AutomaticBeanTest {
|
|||
throw new IllegalStateException(privateField + "," + wrong + "," + val + "," + value);
|
||||
}
|
||||
|
||||
public void doSmth() {
|
||||
privateField = "some value, just for fun";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue