Fix checkstyle issues reported by odlparent-3.0.0's checkstyle
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / leafref / LeafRefPathErrorListener.java
index 839ee43c2fa763909c9e36923e0d685f4010cdc4..59476496ccf92d5c7010d00242e1f1549dc2cad7 100644 (file)
@@ -46,11 +46,11 @@ class LeafRefPathErrorListener extends BaseErrorListener {
         }
 
         final StringBuilder sb = new StringBuilder();
-        String module = null;
+        String exceptionModule = null;
         boolean first = true;
         for (final LeafRefPathSyntaxErrorException e : exceptions) {
-            if (module == null) {
-                module = e.getModule();
+            if (exceptionModule == null) {
+                exceptionModule = e.getModule();
             }
             if (first) {
                 first = false;
@@ -61,7 +61,7 @@ class LeafRefPathErrorListener extends BaseErrorListener {
             sb.append(e.getFormattedMessage());
         }
 
-        throw new LeafRefPathSyntaxErrorException(module, 0, 0, sb.toString());
+        throw new LeafRefPathSyntaxErrorException(exceptionModule, 0, 0, sb.toString());
     }
 
 }