mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-27 22:31:18 +01:00
Further simplify if-else statement for OF default extensions
Change-Id: I0fd3f81ef8aa355f3bf6ff79b798ec5b8449a0f4
This commit is contained in:
parent
124ecf0b19
commit
f97f2bc12a
@ -55,12 +55,6 @@ public class NiciraPopNsh extends AbstractExtension implements ExtensionTreatmen
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof NiciraPopNsh) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return this == obj || obj instanceof NiciraPopNsh;
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,12 +56,6 @@ public class NiciraPushNsh extends AbstractExtension implements ExtensionTreatme
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof NiciraPushNsh) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return this == obj || obj instanceof NiciraPushNsh;
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,13 +57,7 @@ public class Ofdpa3PopCw extends AbstractExtension implements ExtensionTreatment
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof Ofdpa3PopCw) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return this == obj || obj instanceof Ofdpa3PopCw;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -57,13 +57,7 @@ public class Ofdpa3PopL2Header extends AbstractExtension implements ExtensionTre
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof Ofdpa3PopL2Header) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return this == obj || obj instanceof Ofdpa3PopL2Header;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -57,13 +57,7 @@ public class Ofdpa3PushCw extends AbstractExtension implements ExtensionTreatmen
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof Ofdpa3PushCw) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return this == obj || obj instanceof Ofdpa3PushCw;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -57,13 +57,7 @@ public class Ofdpa3PushL2Header extends AbstractExtension implements ExtensionTr
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof Ofdpa3PushL2Header) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return this == obj || obj instanceof Ofdpa3PushL2Header;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user