return NormalizedNodeStreamVersion.LITHIUM;
}
},
-
/**
* Revised ABI version. The messages remain the same as {@link #BORON}, but messages bearing QNames in any shape
* are using {@link NormalizedNodeStreamVersion#NEON_SR2}, which improves encoding.
return NormalizedNodeStreamVersion.NEON_SR2;
}
},
+ /**
+ * Revised ABI version. The messages remain the same as {@link #BORON}, but messages bearing QNames in any shape
+ * are using {@link NormalizedNodeStreamVersion#SODIUM_SR1}, which improves encoding.
+ */
+ SODIUM_SR1(7) {
+ @Override
+ public NormalizedNodeStreamVersion getStreamVersion() {
+ return NormalizedNodeStreamVersion.SODIUM_SR1;
+ }
+ },
/**
* Version which is newer than any other version. This version exists purely for testing purposes.
* @return Current {@link ABIVersion}
*/
public static @NonNull ABIVersion current() {
- return NEON_SR2;
+ return SODIUM_SR1;
}
/**
return BORON;
case 6:
return NEON_SR2;
+ case 7:
+ return SODIUM_SR1;
default:
- throw new FutureVersionException(value, NEON_SR2);
+ throw new FutureVersionException(value, SODIUM_SR1);
}
}
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);
}
/**