Add cds-access-api SODIUM_SR1 version
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / concepts / Message.java
index ed9d6c61459d130bff14f04127666413020d211c..1d198fc8a9c9f8039b9f5cc6955e3a37230f0d98 100644 (file)
@@ -113,15 +113,13 @@ public abstract class Message<T extends WritableIdentifier, C extends Message<T,
         switch (toVersion) {
             case BORON:
             case NEON_SR2:
+            case SODIUM_SR1:
                 return verifyNotNull(cloneAsVersion(toVersion));
             case TEST_PAST_VERSION:
             case TEST_FUTURE_VERSION:
             default:
-                // Fall-through to throw
-                break;
+                throw new IllegalArgumentException("Unhandled ABI version " + toVersion);
         }
-
-        throw new IllegalArgumentException("Unhandled ABI version " + toVersion);
     }
 
     /**