mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 18:02:05 +02:00
Fixing errorprone's warning.
Change-Id: I8bb35ca74df50c7c9d689272c1f7b24274303540
This commit is contained in:
parent
8235a1a6b0
commit
c5836479cf
@ -19,7 +19,6 @@ import java.nio.ByteBuffer;
|
|||||||
|
|
||||||
import static org.onlab.packet.PacketUtils.checkInput;
|
import static org.onlab.packet.PacketUtils.checkInput;
|
||||||
import static com.google.common.base.MoreObjects.toStringHelper;
|
import static com.google.common.base.MoreObjects.toStringHelper;
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ICMP packet class for echo purpose.
|
* ICMP packet class for echo purpose.
|
||||||
@ -77,9 +76,6 @@ public class ICMPEcho extends BasePacket {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public byte[] serialize() {
|
public byte[] serialize() {
|
||||||
checkNotNull(this.identifier);
|
|
||||||
checkNotNull(this.sequenceNum);
|
|
||||||
|
|
||||||
int length = ICMP_ECHO_HEADER_LENGTH;
|
int length = ICMP_ECHO_HEADER_LENGTH;
|
||||||
byte[] payloadData = null;
|
byte[] payloadData = null;
|
||||||
if (this.payload != null) {
|
if (this.payload != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user