From 2db0dd5c85bdf1e125362809b3b504b5090f9f98 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 28 Aug 2019 22:40:14 +0200 Subject: [PATCH] Remove references to YangInstanceIdentifier.EMPTY The constant is going away, update javadocs to reflect that. Change-Id: Ie0415cbd1afd375b14a6c62d097f288ed2193613 Signed-off-by: Robert Varga --- .../yang/data/api/YangInstanceIdentifier.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java index 02dba8a71a..96e4860dd0 100644 --- a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java +++ b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java @@ -86,9 +86,9 @@ import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode; // FIXME: 4.0.0: this concept needs to be moved to yang-common, as parser components need the ability to refer // to data nodes -- most notably XPath expressions and {@code default} statement arguments need to be able // to represent these. -// FIXME: FixedYangInstanceIdentifier needs YangInstanceIdentifier initialized, but that includes initializing -// this field. Figure out a way out of this pickle. -@SuppressFBWarnings("IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION") +// FIXME: Remove this suppression when we remove EMPTY +@SuppressFBWarnings(value = "IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION", + justification = "Having EMPTY a constant is the trouble here") public abstract class YangInstanceIdentifier implements Path, Immutable, Serializable { /** * An empty {@link YangInstanceIdentifier}. It corresponds to the path of the conceptual root of the YANG namespace. @@ -128,7 +128,7 @@ public abstract class YangInstanceIdentifier implements Path