Deprecate StmtContext.getSchemaPath()
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / StmtContext.java
index 29b05857c94fd9497f54576b21e4b9bb5fbdb742..c264043d5a0a46aeae51b4d69891d4819371f12c 100644 (file)
@@ -122,7 +122,10 @@ public interface StmtContext<A, D extends DeclaredStatement<A>, E extends Effect
      * {@link Optional#empty()} is returned.
      *
      * @return Optional SchemaPath
+     * @deprecated Use of SchemaPath in the context of effective statements is going away. Consider not providing this
+     *             information, if your users can exist without it.
      */
+    @Deprecated
     @NonNull Optional<SchemaPath> getSchemaPath();
 
     boolean isConfiguration();