From fcb77f8e818d6c6016ffe09b5fd67b20c4789c48 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 25 Dec 2019 12:23:09 +0100 Subject: [PATCH] Fix InterningLeafSetNodeBuilder check The instanceof check is wrong, as pointed out by SpotBugs, as we want to check for LeafListSchemaNode not LeafSetNode. Change-Id: If538beca159c100621d5661dc8dced5c1051dfe9 Signed-off-by: Robert Varga --- .../yang/data/impl/schema/InterningLeafSetNodeBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/InterningLeafSetNodeBuilder.java b/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/InterningLeafSetNodeBuilder.java index e55b1036a6..bfa14598f1 100644 --- a/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/InterningLeafSetNodeBuilder.java +++ b/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/InterningLeafSetNodeBuilder.java @@ -10,7 +10,6 @@ package org.opendaylight.yangtools.yang.data.impl.schema; import static java.util.Objects.requireNonNull; import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode; -import org.opendaylight.yangtools.yang.data.api.schema.LeafSetNode; import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.ListNodeBuilder; import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableLeafSetNodeBuilder; import org.opendaylight.yangtools.yang.data.util.LeafsetEntryInterner; @@ -30,7 +29,8 @@ final class InterningLeafSetNodeBuilder extends ImmutableLeafSetNodeBuilder ListNodeBuilder> create(final DataSchemaNode schema) { -- 2.36.6