Issue #2661: Enforce StaticMethodCandidateCheck of sevntu-checkstyle over Checkstyle source code
This commit is contained in:
parent
e54822d513
commit
1ef123bf60
|
|
@ -6,5 +6,6 @@
|
|||
|
||||
<module name="Checker">
|
||||
<module name="TreeWalker">
|
||||
<module name="StaticMethodCandidate"/>
|
||||
</module>
|
||||
</module>
|
||||
|
|
@ -303,7 +303,7 @@ public class FinalLocalVariableCheck extends Check {
|
|||
* @param ast the variable ast.
|
||||
* @return true, if the variable should be removed.
|
||||
*/
|
||||
private boolean shouldRemoveVariable(ScopeData scopeData, DetailAST ast) {
|
||||
private static boolean shouldRemoveVariable(ScopeData scopeData, DetailAST ast) {
|
||||
boolean shouldRemove = true;
|
||||
for (DetailAST variable : scopeData.uninitializedVariables) {
|
||||
if (variable.getText().equals(ast.getText())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue