The only caller already checks for the path being absolute, there
is no need to check twice.
Change-Id: I24a038ccfe73b47ceaa13e65f3ea3b74c1a3176f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
d3700afdd16b8f486e4d401e07649dc76aa8e1bf)
*/
private static @Nullable SchemaNode resolveRelativeXPath(final SchemaContext context, final Module module,
final PathExpression relativeXPath, final SchemaNode actualSchemaNode) {
- checkState(!relativeXPath.isAbsolute(), "Revision Aware XPath MUST be relative i.e. MUST contains ../, "
- + "for non relative Revision Aware XPath use findDataSchemaNode method");
checkState(actualSchemaNode.getPath() != null, "Schema Path reference for Leafref cannot be NULL");
final String orig = relativeXPath.getOriginalString();