In case we end up interning the localName, we should use the private
constructor to side-step re-validating localName.
Change-Id: I54029d15c93ae32f5c857e890c8313a9f62f58f0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
// Identity comparison is here on purpose, as we are deciding whether to potentially store 'qname' into the
// interner. It is important that it does not hold user-supplied reference (such a String instance from
// parsing of an XML document).
- final QName template = cacheMod == module ? this : QName.create(cacheMod, localName.intern());
+ final QName template = cacheMod == module ? this : new QName(cacheMod, localName.intern());
return INTERNER.intern(template);
}