Move BindingReflections.isSubstitutionFor()
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / ChoiceNodeCodecContext.java
index 7fda3cd1b45c330ac6ead51188c2d2d7155f7c6e..7f47b51a12138949396c41bfd7cee30c40d3dd19 100644 (file)
@@ -37,7 +37,6 @@ import org.opendaylight.mdsal.binding.runtime.api.BindingRuntimeContext;
 import org.opendaylight.mdsal.binding.runtime.api.CaseRuntimeType;
 import org.opendaylight.mdsal.binding.runtime.api.ChoiceRuntimeType;
 import org.opendaylight.mdsal.binding.spec.naming.BindingMapping;
-import org.opendaylight.mdsal.binding.spec.reflect.BindingReflections;
 import org.opendaylight.yangtools.yang.binding.DataContainer;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument;
@@ -192,7 +191,7 @@ final class ChoiceNodeCodecContext<D extends DataObject> extends DataContainerCo
                 final Class<?> substitution = loadCase(context, caseType);
 
                 search: for (final Entry<Class<?>, DataContainerCodecPrototype<?>> real : byClassBuilder.entrySet()) {
-                    if (BindingReflections.isSubstitutionFor(substitution, real.getKey())) {
+                    if (isSubstitutionFor(substitution, real.getKey())) {
                         bySubstitutionBuilder.put(substitution, real.getValue());
                         break search;
                     }