Satish K
Committed by Gerrit Code Review

Equals and Hashcode issue fix

Change-Id: I2017d251d2acd418cc057b3e16df072985d30dce
......@@ -15,7 +15,7 @@
*/
package org.onosproject.bgpio.types;
import java.util.Objects;
import java.util.Arrays;
import org.jboss.netty.buffer.ChannelBuffer;
import org.onosproject.bgpio.protocol.IGPRouterID;
......@@ -65,7 +65,7 @@ public class IsIsNonPseudonode implements IGPRouterID, BGPValueType {
@Override
public int hashCode() {
return Objects.hash(isoNodeID);
return Arrays.hashCode(isoNodeID);
}
@Override
......@@ -75,7 +75,7 @@ public class IsIsNonPseudonode implements IGPRouterID, BGPValueType {
}
if (obj instanceof IsIsNonPseudonode) {
IsIsNonPseudonode other = (IsIsNonPseudonode) obj;
return Objects.equals(isoNodeID, other.isoNodeID);
return Arrays.equals(isoNodeID, other.isoNodeID);
}
return false;
}
......
......@@ -16,7 +16,7 @@
package org.onosproject.pcepio.types;
import java.util.Objects;
import java.util.Arrays;
import org.jboss.netty.buffer.ChannelBuffer;
import org.onosproject.pcepio.protocol.PcepVersion;
......@@ -168,7 +168,7 @@ public class IPv6SubObject implements PcepValueType {
@Override
public int hashCode() {
return Objects.hash(rawValue);
return Arrays.hashCode(rawValue);
}
@Override
......@@ -178,7 +178,7 @@ public class IPv6SubObject implements PcepValueType {
}
if (obj instanceof IPv6SubObject) {
IPv6SubObject other = (IPv6SubObject) obj;
return Objects.equals(rawValue, other.rawValue);
return Arrays.equals(rawValue, other.rawValue);
}
return false;
}
......