Move Utils.belongsToTheSameModule()
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / augment / AbstractAugmentStatementSupport.java
index d7a11c77c97cfe5ae4911d03c7e3e734465a25d5..026c808cdf1478a61349cd6fe9a317707813b371 100644 (file)
@@ -290,10 +290,9 @@ abstract class AbstractAugmentStatementSupport extends AbstractStatementSupport<
                     "Argument of augment target statement must be QName.");
             final QName targetStmtQName = (QName) targetCtx.getStatementArgument();
             /*
-             * If target is from another module, return true and perform
-             * mandatory nodes validation
+             * If target is from another module, return true and perform mandatory nodes validation
              */
-            if (!Utils.belongsToTheSameModule(targetStmtQName, sourceStmtQName)) {
+            if (!targetStmtQName.getModule().equals(sourceStmtQName.getModule())) {
                 return true;
             }