From 87516d558ff43b563a80ed9884df1bc62e3573bd Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 31 Jul 2010 15:39:18 +0100 Subject: [PATCH] fix dom implementation mapping --- .../intellij/util/xml/impl/ImplementationClassCache.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xml/dom-impl/src/com/intellij/util/xml/impl/ImplementationClassCache.java b/xml/dom-impl/src/com/intellij/util/xml/impl/ImplementationClassCache.java index d07607a608f1..3cc048253fcb 100644 --- a/xml/dom-impl/src/com/intellij/util/xml/impl/ImplementationClassCache.java +++ b/xml/dom-impl/src/com/intellij/util/xml/impl/ImplementationClassCache.java @@ -68,12 +68,11 @@ class ImplementationClassCache { for (DomImplementationClassEP value : values) { if (value.getInterfaceClass() == concreteInterface) { results.add(value.getImplementationClass()); + return; } } - if (results.isEmpty()) { - for (final Class aClass1 : ReflectionCache.getInterfaces(concreteInterface)) { - findImplementationClassDFS(aClass1, results); - } + for (final Class aClass1 : ReflectionCache.getInterfaces(concreteInterface)) { + findImplementationClassDFS(aClass1, results); } }