Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Centralize SchemaNode.getPath() dispatch
[yangtools.git]
/
yang
/
yang-parser-spi
/
src
/
main
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
parser
/
spi
/
meta
/
EffectiveStmtCtx.java
diff --git
a/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/EffectiveStmtCtx.java
b/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/EffectiveStmtCtx.java
index 4e9576706f2697b5ec60b3c8f2f1968cd4d362fa..34a0341ca5b4ba83e517f3274fe54e9602a59299 100644
(file)
--- a/
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/EffectiveStmtCtx.java
+++ b/
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/EffectiveStmtCtx.java
@@
-67,6
+67,11
@@
public interface EffectiveStmtCtx extends CommonStmtCtx, StmtContextCompat, Immu
default @NonNull SchemaPath getSchemaPath() {
return schemaPath().orElseThrow();
}
+
+ @Deprecated
+ default @Nullable SchemaPath wrapSchemaPath() {
+ return SchemaPathSupport.wrap(getSchemaPath());
+ }
}
/**