Align argument names of getLeafNodes() 68/99268/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 12 Jan 2022 11:58:04 +0000 (12:58 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 12 Jan 2022 11:58:04 +0000 (12:58 +0100)
Naming here is off: the class and schema do not correspond to each
other, but they are not in parent/child relationship, either.

Change-Id: I3f48ce0beaa446fcf4829fb3faaf24d075516ba2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/BindingCodecContext.java

index 52a67707cad82fc8bfe572a6bc17ecea5d2b48ee..809e56d669840e9478e4d829807afd53d942d6f6 100644 (file)
@@ -343,16 +343,16 @@ public final class BindingCodecContext extends AbstractBindingNormalizedNodeSeri
     }
 
     @Override
-    public ImmutableMap<Method, ValueNodeCodecContext> getLeafNodes(final Class<?> parentClass,
-            final DataNodeContainer childSchema) {
+    public ImmutableMap<Method, ValueNodeCodecContext> getLeafNodes(final Class<?> type,
+            final DataNodeContainer schema) {
         final Map<String, DataSchemaNode> getterToLeafSchema = new HashMap<>();
-        for (final DataSchemaNode leaf : childSchema.getChildNodes()) {
+        for (final DataSchemaNode leaf : schema.getChildNodes()) {
             if (leaf instanceof TypedDataSchemaNode || leaf instanceof AnyxmlSchemaNode
                     || leaf instanceof AnydataSchemaNode) {
                 getterToLeafSchema.put(BindingSchemaMapping.getGetterMethodName(leaf), leaf);
             }
         }
-        return getLeafNodesUsingReflection(parentClass, getterToLeafSchema);
+        return getLeafNodesUsingReflection(type, getterToLeafSchema);
     }
 
     private ImmutableMap<Method, ValueNodeCodecContext> getLeafNodesUsingReflection(