From fb4f029c098428303fefd9a092086aa96972f8e0 Mon Sep 17 00:00:00 2001 From: Peter Gromov Date: Mon, 21 Sep 2009 22:23:28 +0400 Subject: [PATCH] make dom validity checks closer to sem contributor logic --- .../util/xml/impl/CollectionElementInvocationHandler.java | 7 +------ .../util/xml/impl/IndexedElementInvocationHandler.java | 10 ---------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/xml/dom-impl/src/com/intellij/util/xml/impl/CollectionElementInvocationHandler.java b/xml/dom-impl/src/com/intellij/util/xml/impl/CollectionElementInvocationHandler.java index 3da32934f3..9505b14d90 100644 --- a/xml/dom-impl/src/com/intellij/util/xml/impl/CollectionElementInvocationHandler.java +++ b/xml/dom-impl/src/com/intellij/util/xml/impl/CollectionElementInvocationHandler.java @@ -18,13 +18,11 @@ import java.util.List; * @author peter */ public class CollectionElementInvocationHandler extends DomInvocationHandler{ - private final String myTagQName; public CollectionElementInvocationHandler(final Type type, @NotNull final XmlTag tag, final AbstractCollectionChildDescription description, final DomInvocationHandler parent) { super(type, new PhysicalDomParentStrategy(tag, parent.getManager()), description.createEvaluatedXmlName(parent, tag), (AbstractDomChildDescriptionImpl)description, parent.getManager(), true); - myTagQName = tag.getName(); } protected Type narrowType(@NotNull final Type nominalType) { @@ -39,10 +37,7 @@ public class CollectionElementInvocationHandler extends DomInvocationHandler 0 && localName.equals(tag.getName())) return true; - return localName.equals(tag.getLocalName()) && myNamespace.equals(tag.getNamespace()); - } - @SuppressWarnings({"EqualsWhichDoesntCheckParameterClass"}) public boolean equals(final Object obj) { return super.equals(obj) && myIndex == ((IndexedElementInvocationHandler)obj).myIndex; -- 2.11.4.GIT