Eliminate use of addAugmentation(Class, DataObject) 50/90450/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 15 Jun 2020 12:42:13 +0000 (14:42 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 15 Jun 2020 12:45:03 +0000 (14:45 +0200)
We have a replacement for this, migrate this user to remove
a warning.

Change-Id: Ib41c26cbd39766a8547edc88be03e3d8acf97265
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-test-model/src/main/java/org/opendaylight/mdsal/binding/test/model/util/ListsBindingUtils.java

index 135d04768412527f1fa9b7e00e9f19f43099a8d4..8ace00fca759c534becf65d468300f778b98da0c 100644 (file)
@@ -70,7 +70,7 @@ public final class ListsBindingUtils {
     }
 
     public static TopLevelList topLevelList(final TopLevelListKey key, final TreeComplexUsesAugment augment) {
-        return new TopLevelListBuilder().withKey(key).addAugmentation(TreeComplexUsesAugment.class, augment).build();
+        return new TopLevelListBuilder().withKey(key).addAugmentation(augment).build();
     }
 
     public static TreeComplexUsesAugment complexUsesAugment(final ListViaUsesKey... keys) {
@@ -82,8 +82,6 @@ public final class ListsBindingUtils {
     }
 
     public static TreeLeafOnlyUsesAugment leafOnlyUsesAugment(final String leafFromGroupingValue) {
-
         return new TreeLeafOnlyUsesAugmentBuilder().setLeafFromGrouping(leafFromGroupingValue).build();
     }
-
 }