do not fetch all interfaces recursively for every subclass

GitOrigin-RevId: 769910162df2ccfbf42eb9b57fcd45db30d29eed
This commit is contained in:
Egor Ushakov
2019-07-24 18:06:01 +03:00
committed by intellij-monorepo-bot
parent a1ee3ed7e7
commit 17fd41aa57
@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.engine;
import com.intellij.debugger.DebuggerBundle;
@@ -304,9 +304,10 @@ public abstract class DebuggerUtils {
return result;
}
for (InterfaceType iface : clsType.allInterfaces()) {
if (typeEquals(iface, superType)) {
return iface;
for (InterfaceType iface : clsType.interfaces()) {
result = getSuperType(iface, superType);
if (result != null) {
return result;
}
}
}