Satish K
Committed by Gerrit Code Review

Equals and Hash code fix for byte array

Change-Id: I074070da647cb5eae0b9ec5b810ac1c813ebd87b
......@@ -15,7 +15,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;
......@@ -99,7 +99,7 @@ public class RouterIDSubTlv implements PcepValueType {
@Override
public int hashCode() {
return Objects.hash(rawValue);
return Arrays.hashCode(rawValue);
}
@Override
......@@ -109,7 +109,7 @@ public class RouterIDSubTlv implements PcepValueType {
}
if (obj instanceof RouterIDSubTlv) {
RouterIDSubTlv other = (RouterIDSubTlv) obj;
return Objects.equals(this.rawValue, other.rawValue);
return Arrays.equals(this.rawValue, other.rawValue);
}
return false;
}
......