From: Robert Varga Date: Mon, 13 May 2019 09:28:14 +0000 (+0200) Subject: Add FIXMEs to remove generic type argument X-Git-Tag: v3.0.1~29 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=928ecbf271f91d1eaab50d3e1764c4df2b514471;p=yangtools.git Add FIXMEs to remove generic type argument anyXmlBuilder() methods are not really parameterized, add a FIXME to drop the unused parameter. Change-Id: Id35501283d0ca2a85654cd47a640bbfbc8824258 Signed-off-by: Robert Varga --- diff --git a/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/Builders.java b/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/Builders.java index 0938263878..3610d4ecdc 100644 --- a/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/Builders.java +++ b/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/Builders.java @@ -87,41 +87,44 @@ public final class Builders { return ImmutableLeafSetEntryNodeSchemaAwareBuilder.create(schema); } + // FIXME: 5.0.0 should not be here public static NormalizedNodeBuilder anyXmlBuilder() { return ImmutableAnyXmlNodeBuilder.create(); } + // FIXME: 5.0.0 should not be here public static NormalizedNodeBuilder anyXmlBuilder( final AnyXmlSchemaNode schema) { return ImmutableAnyXmlNodeSchemaAwareBuilder.create(schema); } + // FIXME: 5.0.0 should not be here public static DataContainerNodeBuilder yangModeledAnyXmlBuilder( final YangModeledAnyXmlSchemaNode schema) { return ImmutableYangModeledAnyXmlNodeBuilder.create(schema); } - public static ListNodeBuilder> orderedLeafSetBuilder() { + public static ListNodeBuilder> orderedLeafSetBuilder() { return ImmutableOrderedLeafSetNodeBuilder.create(); } - public static ListNodeBuilder> orderedLeafSetBuilder(final LeafListSchemaNode schema) { + public static ListNodeBuilder> orderedLeafSetBuilder(final LeafListSchemaNode schema) { return ImmutableOrderedLeafSetNodeSchemaAwareBuilder.create(schema); } - public static ListNodeBuilder> leafSetBuilder() { + public static ListNodeBuilder> leafSetBuilder() { return ImmutableLeafSetNodeBuilder.create(); } - public static ListNodeBuilder> leafSetBuilder(final LeafSetNode node) { + public static ListNodeBuilder> leafSetBuilder(final LeafSetNode node) { return ImmutableLeafSetNodeBuilder.create(node); } - public static ListNodeBuilder> leafSetBuilder(final LeafListSchemaNode schema) { + public static ListNodeBuilder> leafSetBuilder(final LeafListSchemaNode schema) { return ImmutableLeafSetNodeSchemaAwareBuilder.create(schema); } - public static ListNodeBuilder> leafSetBuilder(final LeafListSchemaNode schema, + public static ListNodeBuilder> leafSetBuilder(final LeafListSchemaNode schema, final LeafSetNode node) { return ImmutableLeafSetNodeSchemaAwareBuilder.create(schema, node); }