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 fd53b0f9723e19dd1fde9310fd2988c4c90d6b9b..e2085e6e540408abdb1c8180b2d538cfa71f733e 100644 (file)
@@ -1,11 +1,9 @@
 /*
+ * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
  *
- *  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- *  This program and the accompanying materials are made available under the
- *  terms of the Eclipse Public License v1.0 which accompanies this distribution,
- *  and is available at http://www.eclipse.org/legal/epl-v10.html
- *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
 package org.opendaylight.controller.cluster.datastore.node.utils;
@@ -18,21 +16,21 @@ public class NormalizedNodeGetter implements
     private final String path;
     NormalizedNode<?, ?> output;
 
-    public NormalizedNodeGetter(String path){
+    public NormalizedNodeGetter(String path) {
         Preconditions.checkNotNull(path);
         this.path = path;
     }
 
     @Override
     public void visitNode(int level, String parentPath, NormalizedNode<?, ?> normalizedNode) {
-        String nodePath = parentPath + "/"+ PathUtils.toString(normalizedNode.getIdentifier());
+        String nodePath = parentPath + "/" + PathUtils.toString(normalizedNode.getIdentifier());
 
-        if(nodePath.toString().equals(path)){
+        if (nodePath.equals(path)) {
             output = normalizedNode;
         }
     }
 
-    public NormalizedNode<?, ?> getOutput(){
+    public NormalizedNode<?, ?> getOutput() {
         return output;
     }
 }