YANGTOOLS-621: introduce specialized integer types
[yangtools.git] / yang / yang-data-codec-gson / src / main / java / org / opendaylight / yangtools / yang / data / codec / gson / JSONCodecFactory.java
index 21a640af16a0625ade22bb0178dee675321bdcc5..07a261fc09dabb7f3b29530ef6bab35cafe44ca2 100644 (file)
@@ -245,7 +245,7 @@ public final class JSONCodecFactory extends AbstractCodecFactory<JSONCodec<?>> {
     }
 
     @Override
-    protected JSONCodec<?> intCodec(final IntegerTypeDefinition type) {
+    protected JSONCodec<?> intCodec(final IntegerTypeDefinition<?, ?> type) {
         return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type));
     }
 
@@ -255,7 +255,7 @@ public final class JSONCodecFactory extends AbstractCodecFactory<JSONCodec<?>> {
     }
 
     @Override
-    protected JSONCodec<?> uintCodec(final UnsignedIntegerTypeDefinition type) {
+    protected JSONCodec<?> uintCodec(final UnsignedIntegerTypeDefinition<?, ?> type) {
         return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type));
     }