commit | 20d452b958c48f55f301e66f4d8af64ce6dcffbf | [log] [tgz] |
---|---|---|
author | Antonio Marsico <antonio.marsico@create-net.org> | Wed Oct 05 14:04:27 2016 +0200 |
committer | Antonio Marsico <antonio.marsico@create-net.org> | Wed Oct 05 14:15:39 2016 +0200 |
tree | 56e3f645f1120a82e08e310be6d3913271c815d3 | |
parent | 14aee09463b5a9865717f933a85b681494d2fdf0 [diff] |
Fix duplicated lines of code in method decode() Change-Id: I9b7e0ff861efeff0f65f6ac2d30fdda51df5e253
diff --git a/core/common/src/main/java/org/onosproject/codec/impl/DecodeConstraintCodecHelper.java b/core/common/src/main/java/org/onosproject/codec/impl/DecodeConstraintCodecHelper.java index 4eac49d..8a25d72 100644 --- a/core/common/src/main/java/org/onosproject/codec/impl/DecodeConstraintCodecHelper.java +++ b/core/common/src/main/java/org/onosproject/codec/impl/DecodeConstraintCodecHelper.java
@@ -195,10 +195,6 @@ 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");