[debugger] IDEA-349254 Remove obsolete overload of DebuggerUtilsImpl.invokeObjectMethod

GitOrigin-RevId: 46ca61027e483c41c7721a6c72cbd2f16b26cd8d
This commit is contained in:
Alexander Kuznetsov
2024-10-14 17:27:11 +00:00
committed by intellij-monorepo-bot
parent f386cee9cc
commit 5931afd75a
2 changed files with 2 additions and 9 deletions
@@ -556,13 +556,6 @@ public final class DebuggerUtilsImpl extends DebuggerUtilsEx {
return evaluationContext.getDebugProcess().invokeMethod(evaluationContext, type, method, Collections.emptyList());
}
public static @Nullable Value invokeObjectMethod(@NotNull EvaluationContextImpl evaluationContext,
@NotNull ObjectReference value,
@NotNull String methodName,
@Nullable String signature) throws EvaluateException {
return invokeObjectMethod(evaluationContext, value, methodName, signature, Collections.emptyList());
}
public static @Nullable Value invokeObjectMethod(@NotNull EvaluationContextImpl evaluationContext,
@NotNull ObjectReference value,
@NotNull String methodName,
@@ -32,13 +32,13 @@ class FileObjectRenderer : CompoundRendererProvider() {
override fun getFullValueEvaluator(evaluationContext: EvaluationContextImpl, valueDescriptor: ValueDescriptorImpl): XFullValueEvaluator? {
val value = valueDescriptor.value as? ObjectReference ?: return null
try {
val isFile = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "isFile", "()Z")
val isFile = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "isFile", "()Z", emptyList())
if ((isFile as? BooleanValue)?.value() == true) {
return object : JavaValue.JavaFullValueEvaluator(message("message.node.open"), evaluationContext) {
override fun isShowValuePopup(): Boolean = false
override fun evaluate(callback: XFullValueEvaluationCallback) {
val path = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "getAbsolutePath", "()Ljava/lang/String;")
val path = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "getAbsolutePath", "()Ljava/lang/String;", emptyList())
if (path is StringReference) {
callback.evaluated("")
val vFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(path.value()) ?: return