Update findbugs versions.
- Update findbugs and maven plugins to 2.0.3 and 2.5.4.
- Fix for bugs detected by new version of findbugs
Note:
If you see "dependencies could not be resolved" error,
running "mvn clean verify -U" to force maven to check for new version in
remote repository might resolve the issue.
Change-Id: I26661aaf5d791980b0ab161649022e5bb7cf045d
diff --git a/src/main/java/net/onrc/onos/core/intent/PathIntent.java b/src/main/java/net/onrc/onos/core/intent/PathIntent.java
index cc00979..4312075 100644
--- a/src/main/java/net/onrc/onos/core/intent/PathIntent.java
+++ b/src/main/java/net/onrc/onos/core/intent/PathIntent.java
@@ -15,7 +15,7 @@
public static String createNextId(String currentId) {
String[] parts = currentId.split("___");
- return String.format("%s___%d", parts[0], Long.valueOf(parts[1]) + 1);
+ return String.format("%s___%d", parts[0], Long.parseLong(parts[1]) + 1);
}
/**