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/util/IPv4.java b/src/main/java/net/onrc/onos/core/util/IPv4.java
index 0b5c081..047e8c6 100644
--- a/src/main/java/net/onrc/onos/core/util/IPv4.java
+++ b/src/main/java/net/onrc/onos/core/util/IPv4.java
@@ -54,7 +54,7 @@
int result = 0;
for (int i = 0; i < 4; ++i) {
- result |= Integer.valueOf(splits[i]) << ((3 - i) * 8);
+ result |= Integer.parseInt(splits[i]) << ((3 - i) * 8);
}
this.value = result;
}