There is only one call site which uses this utility, inline it
there.
Change-Id: Iec3145336f4050046715fd0754934d5c0bdd284a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
"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;
}
return string;
}
-
- public static boolean belongsToTheSameModule(final QName targetStmtQName, final QName sourceStmtQName) {
- return targetStmtQName.getModule().equals(sourceStmtQName.getModule());
- }
}