EncapsulatedValueCodec does not use TypeDefinition
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / SchemaUnawareCodec.java
index e5f54760e05e50da11d87e75e27d6f1f69de6c7a..892f80cecb1fbadd01303d9ad23b7a0598ac622a 100644 (file)
@@ -65,7 +65,7 @@ interface SchemaUnawareCodec extends IllegalArgumentCodec<Object, Object> {
             } else if (rootType instanceof BitsTypeDefinition) {
                 return BitsCodec.of(typeClz, (BitsTypeDefinition) rootType);
             } else {
-                return EncapsulatedValueCodec.of(typeClz, def);
+                return EncapsulatedValueCodec.of(typeClz);
             }
         } catch (ExecutionException e) {
             throw new IllegalStateException(e);