commit | 8861ea5e4668d6f16067f7858777b475894ba2dd | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Thu Apr 10 14:31:49 2014 -0700 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Thu Apr 10 14:31:49 2014 -0700 |
tree | 104b5be4557d765af0b92eadff076aed59fa58ec | |
parent | 53ad5e393eeab71fada318c42c416c2aaadcba9c [diff] |
Fix issues found by FindBugs: ICAST_INTEGER_MULTIPLY_CAST_TO_LONG http://findbugs.sourceforge.net/bugDescriptions.html#ICAST_INTEGER_MULTIPLY_CAST_TO_LONG Change-Id: Ia7ef18ad5f62300bf74cc30050be018be5c585fc
diff --git a/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java b/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java index 9b913c1..adcacd8 100644 --- a/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java +++ b/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java
@@ -1512,7 +1512,7 @@ // Timeout the unicast and multicast LLDP valid times // independently. if ((info.getUnicastValidTime() != null) && - (info.getUnicastValidTime() + (this.LINK_TIMEOUT * 1000) < curTime)) { + (info.getUnicastValidTime() + (1000L * this.LINK_TIMEOUT) < curTime)) { info.setUnicastValidTime(null); if (info.getMulticastValidTime() != null) {