From adeac42886d2e2503511813ee03799f97992d249 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Tue, 24 Jan 2017 21:04:53 +0100 Subject: [PATCH] "Resource registered by this uri is not recognized" spuriously triggers for "http://www.w3.org/2001/XMLSchema-instance" running tests (IDEA-162824) (cherry picked from commit 5f836a3) --- .../src/com/intellij/psi/impl/source/xml/XmlTagImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/xml-psi-impl/src/com/intellij/psi/impl/source/xml/XmlTagImpl.java b/xml/xml-psi-impl/src/com/intellij/psi/impl/source/xml/XmlTagImpl.java index 70a6c5a89e15..2e5e40d3483e 100644 --- a/xml/xml-psi-impl/src/com/intellij/psi/impl/source/xml/XmlTagImpl.java +++ b/xml/xml-psi-impl/src/com/intellij/psi/impl/source/xml/XmlTagImpl.java @@ -599,7 +599,7 @@ public class XmlTagImpl extends XmlElementImpl implements XmlTag, HintedReferenc if (element instanceof XmlAttribute) { XmlAttribute attribute = (XmlAttribute)element; result.add(attribute); - myHasNamespaceDeclarations = myHasNamespaceDeclarations || attribute.isNamespaceDeclaration(); + if (!myHasNamespaceDeclarations && attribute.isNamespaceDeclaration()) myHasNamespaceDeclarations = true; } else if (element instanceof XmlToken && ((XmlToken)element).getTokenType() == XmlTokenType.XML_TAG_END) { return false;