Mass-migrate to use EffectiveModelContext
[yangtools.git] / yang / yang-data-codec-gson / src / main / java / org / opendaylight / yangtools / yang / data / codec / gson / RFC7951JSONCodecFactory.java
index 51e7a57977c32371b7f8d051753d87ba68b69ec8..f60fff658eaa592bdcb5ef9cc4674a256bb6f9f8 100644 (file)
@@ -10,13 +10,13 @@ package org.opendaylight.yangtools.yang.data.codec.gson;
 import org.opendaylight.yangtools.yang.data.impl.codec.AbstractIntegerStringCodec;
 import org.opendaylight.yangtools.yang.data.impl.codec.DecimalStringCodec;
 import org.opendaylight.yangtools.yang.data.util.codec.CodecCache;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 import org.opendaylight.yangtools.yang.model.api.type.InstanceIdentifierTypeDefinition;
 
 final class RFC7951JSONCodecFactory extends JSONCodecFactory {
     private final RFC7951JSONInstanceIdentifierCodec iidCodec;
 
-    RFC7951JSONCodecFactory(final SchemaContext context, final CodecCache<JSONCodec<?>> cache) {
+    RFC7951JSONCodecFactory(final EffectiveModelContext context, final CodecCache<JSONCodec<?>> cache) {
         super(context, cache);
         iidCodec = new RFC7951JSONInstanceIdentifierCodec(context, this);
     }
@@ -27,7 +27,7 @@ final class RFC7951JSONCodecFactory extends JSONCodecFactory {
     }
 
     @Override
-    JSONCodecFactory rebaseTo(final SchemaContext newSchemaContext, final CodecCache<JSONCodec<?>> newCache) {
+    JSONCodecFactory rebaseTo(final EffectiveModelContext newSchemaContext, final CodecCache<JSONCodec<?>> newCache) {
         return new RFC7951JSONCodecFactory(newSchemaContext, newCache);
     }