HIGUCHI Yuta
Committed by Gerrit Code Review

Fix byte[] comparison using equals

Change-Id: I1185e16f540d69870d7762d8a8ec1cd8871e2c2b
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
19 package org.onlab.packet; 19 package org.onlab.packet;
20 20
21 import java.nio.ByteBuffer; 21 import java.nio.ByteBuffer;
22 +import java.util.Arrays;
22 23
23 import static org.onlab.packet.PacketUtils.*; 24 import static org.onlab.packet.PacketUtils.*;
24 25
...@@ -420,7 +421,7 @@ public class TCP extends BasePacket { ...@@ -420,7 +421,7 @@ public class TCP extends BasePacket {
420 && this.flags == other.flags 421 && this.flags == other.flags
421 && this.windowSize == other.windowSize 422 && this.windowSize == other.windowSize
422 && this.urgentPointer == other.urgentPointer 423 && this.urgentPointer == other.urgentPointer
423 - && (this.dataOffset == 5 || this.options.equals(other.options)); 424 + && (this.dataOffset == 5 || Arrays.equals(this.options, other.options));
424 } 425 }
425 426
426 /** 427 /**
......