We do not take any input, not some vague Object. Specialize to
java.lang.Void, of which there is only the null instance.
JIRA: YANGTOOLS-1568
Change-Id: Ia7cda3f485b07d56b9986f689635fbcca1025a65
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*
* @param <T> Normalized value type
*/
-public sealed interface JSONCodec<T> extends TypeAwareCodec<T, Object, JsonWriter>
+public sealed interface JSONCodec<T> extends TypeAwareCodec<T, Void, JsonWriter>
permits AbstractJSONCodec, EmptyJSONCodec, IdentityrefJSONCodec, InstanceIdentifierJSONCodec, UnionJSONCodec {
/**
* {@inheritDoc}.
*/
@Override
@Deprecated
- default T parseValue(final Object ctx, final String str) {
+ default T parseValue(final Void ctx, final String str) {
return parseValue(str);
}