Fix some SpotBugs issues
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / constraints / PceConstraintsCalc.java
index 94b27b01e75e40b2c41ed19897d88f7fd04f6668..f8c2ecb6ad168aae131fc9bf7796371d33b6240b 100644 (file)
@@ -262,7 +262,7 @@ public class PceConstraintsCalc {
                         }
                         break;
                     default:
-                        LOG.info("in readDiversity unsupported divercity type", rt);
+                        LOG.info("in readDiversity unsupported divercity type {}", rt);
                 }
 
             } else {
@@ -289,7 +289,7 @@ public class PceConstraintsCalc {
             return true;
         }).map(aToZ -> {
             Node node = ((Node) aToZ.getResource().getResource());
-            return node.getNodeId().toString();
+            return node.getNodeId();
         }).collect(Collectors.toList());
     }