From: Robert Varga Date: Mon, 30 Aug 2021 08:54:26 +0000 (+0200) Subject: Deprecate SchemaPath X-Git-Tag: v7.0.8~10 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=91fa7c87b91819bfda49c261b2ff749bed9aa4be;p=yangtools.git 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 --- 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 { /**