mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 09:51:38 +02:00
Fix duplicated lines of code in method decode()
Change-Id: I9b7e0ff861efeff0f65f6ac2d30fdda51df5e253
This commit is contained in:
parent
14aee09463
commit
20d452b958
@ -195,10 +195,6 @@ public final class DecodeConstraintCodecHelper {
|
|||||||
return decodeWaypointConstraint();
|
return decodeWaypointConstraint();
|
||||||
} else if (type.equals(AsymmetricPathConstraint.class.getSimpleName())) {
|
} else if (type.equals(AsymmetricPathConstraint.class.getSimpleName())) {
|
||||||
return decodeAsymmetricPathConstraint();
|
return decodeAsymmetricPathConstraint();
|
||||||
} else if (type.equals(LinkTypeConstraint.class.getSimpleName())) {
|
|
||||||
return decodeLinkTypeConstraint();
|
|
||||||
} else if (type.equals(AnnotationConstraint.class.getSimpleName())) {
|
|
||||||
return decodeAnnotationConstraint();
|
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException("Instruction type "
|
throw new IllegalArgumentException("Instruction type "
|
||||||
+ type + " is not supported");
|
+ type + " is not supported");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user