Fix FindBugs warnings in sal-clustering-commons
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / NormalizedNodeGetter.java
index e1e7b9f684b625e859e3b8651104d2d0cccd62fa..e2085e6e540408abdb1c8180b2d538cfa71f733e 100644 (file)
@@ -25,7 +25,7 @@ public class NormalizedNodeGetter implements
     public void visitNode(int level, String parentPath, NormalizedNode<?, ?> normalizedNode) {
         String nodePath = parentPath + "/" + PathUtils.toString(normalizedNode.getIdentifier());
 
-        if (nodePath.toString().equals(path)) {
+        if (nodePath.equals(path)) {
             output = normalizedNode;
         }
     }