This is pointed out by eclipse: QName will never compare as equal
with a QNameModule. Fix the thinko.
Change-Id: I32b0856fb533189be4700a4f7e3eeb00eb319b44
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
boolean replaced = false;
for (final SchemaNodeIdentifier arg : ctx.getStatementArgument()) {
final QName qname = arg.getLastComponent();
- if (!targetModule.equals(qname)) {
+ if (!targetModule.equals(qname.getModule())) {
final QName newQname = ctx.getFromNamespace(QNameCacheNamespace.class,
QName.create(targetModule, qname.getLocalName()));
builder.add(SchemaNodeIdentifier.create(false, newQname));