Conform to our own Checkstyle rules in checkstyle-logging utility
[yangtools.git] / common / checkstyle-logging / src / main / java / org / opendaylight / yangtools / checkstyle / LoggerDeclarationsCountCheck.java
index 51bbe3e06e10ab27b1424cf36ff080abe208a724..304572d476178c56cc2db7c166f91677dc07f4ec 100644 (file)
@@ -25,19 +25,19 @@ public class LoggerDeclarationsCountCheck extends Check {
     }
 
     @Override
-    public void visitToken(DetailAST aAST) {
-        if (CheckLoggingUtil.isLoggerType(aAST) && isAFieldVariable(aAST)) {
-            final String className = CheckLoggingUtil.getClassName(aAST);
-            if(this.prevClassName.equals(className)) {
-                log(aAST.getLineNo(), LOG_MESSAGE);
+    public void visitToken(DetailAST ast) {
+        if (CheckLoggingUtil.isLoggerType(ast) && isAFieldVariable(ast)) {
+            final String className = CheckLoggingUtil.getClassName(ast);
+            if (this.prevClassName.equals(className)) {
+                log(ast.getLineNo(), LOG_MESSAGE);
             }
             this.prevClassName = className;
         }
     }
 
     @Override
-    public void finishTree(DetailAST aRootAST) {
-        super.finishTree(aRootAST);
+    public void finishTree(DetailAST rootAST) {
+        super.finishTree(rootAST);
         this.prevClassName = "";
     }