This just uses proper fluent builder pattern instead of a
temporary variable.
Change-Id: I8cdf2cff7c910f5518eb999949f315740fe7c1ca
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
9e4b1ee522aa173efe114e315b017f77716cdb79)
}
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) {