From 91fa7c87b91819bfda49c261b2ff749bed9aa4be Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 30 Aug 2021 10:54:26 +0200 Subject: [PATCH] Deprecate SchemaPath SchemaPath has only a few remaining users, with two different concepts added to cover the two significant use cases. Add pointers to replacements and deprecate SchemaPath. JIRA: YANGTOOLS-1238 Change-Id: I21b98fef8112b0773c342fc83356cca9f3b64188 Signed-off-by: Robert Varga --- .../yangtools/yang/model/api/SchemaPath.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaPath.java b/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaPath.java index 60d7f71739..f22dfe92a7 100644 --- a/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaPath.java +++ b/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaPath.java @@ -28,7 +28,19 @@ import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Desce /** * Represents unique path to the every node inside the module. + * + * @deprecated This path is not really unique, as it does not handle YANG namespace overlap correctly. There are two + * different replacements for this class: + * */ +@Deprecated(since = "7.0.8") public abstract class SchemaPath implements Immutable { /** -- 2.36.6