Bug 8153: Enforce check-style rules for netconf - netconf-util
[netconf.git] / netconf / netconf-util / src / main / java / org / opendaylight / netconf / util / xml / XMLNetconfUtil.java
index ebe7bd023bec82a2593af64be23fc6ef71eb57c2..b3c3da5c2630ac6b75d313797ce5d9ab3319cadd 100644 (file)
@@ -24,13 +24,13 @@ public final class XMLNetconfUtil {
         throw new UnsupportedOperationException("Utility class");
     }
 
-    public static XPathExpression compileXPath(final String xPath) {
-        final XPath xpath = FACTORY.newXPath();
-        xpath.setNamespaceContext(NS_CONTEXT);
+    public static XPathExpression compileXPath(final String xpath) {
+        final XPath newXPath = FACTORY.newXPath();
+        newXPath.setNamespaceContext(NS_CONTEXT);
         try {
-            return xpath.compile(xPath);
+            return newXPath.compile(xpath);
         } catch (final XPathExpressionException e) {
-            throw new IllegalStateException("Error while compiling xpath expression " + xPath, e);
+            throw new IllegalStateException("Error while compiling xpath expression " + xpath, e);
         }
     }