mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-15 17:31:31 +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();
|
||||
} else if (type.equals(AsymmetricPathConstraint.class.getSimpleName())) {
|
||||
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 "
|
||||
+ type + " is not supported");
|
||||
|
Loading…
x
Reference in New Issue
Block a user