Fix duplicated lines of code in method decode()

Change-Id: I9b7e0ff861efeff0f65f6ac2d30fdda51df5e253
This commit is contained in:
Antonio Marsico 2016-10-05 14:04:27 +02:00
parent 14aee09463
commit 20d452b958

View File

@ -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");