Speed up ListsBindingUtils
[mdsal.git] / binding / mdsal-binding-test-model / src / main / java / org / opendaylight / mdsal / binding / test / model / util / ListsBindingUtils.java
index f2e72f76cfa5d3321f7e3f75e04e680a5b16ef33..7ac0e9cccfffafedac15c8f2d0f550c08a05e264 100644 (file)
@@ -67,9 +67,7 @@ public final class ListsBindingUtils {
     }
 
     public static TopLevelList topLevelList(final TopLevelListKey key, final TreeComplexUsesAugment augment) {
-        final TopLevelListBuilder builder = new TopLevelListBuilder().withKey(key);
-        builder.addAugmentation(TreeComplexUsesAugment.class, augment);
-        return builder.build();
+        return new TopLevelListBuilder().withKey(key).addAugmentation(TreeComplexUsesAugment.class, augment).build();
     }
 
     public static TreeComplexUsesAugment complexUsesAugment(final ListViaUsesKey... keys) {