mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
[debugger] Refactor loading class API
GitOrigin-RevId: 40a12089dd9622d4ee539f3f97732b4e974b168f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8ee43317ce
commit
f911c11040
@@ -11,7 +11,7 @@ import com.sun.jdi.ReferenceType
|
||||
internal fun findClassOrNull(evaluationContext: EvaluationContext, fqn: String): ReferenceType? {
|
||||
val debugProcess = evaluationContext.debugProcess as? DebugProcessImpl ?: return null
|
||||
return try {
|
||||
debugProcess.findLoadedClass(evaluationContext, fqn, evaluationContext.classLoader)
|
||||
debugProcess.findLoadedClass(evaluationContext.suspendContext, fqn, evaluationContext.classLoader)
|
||||
}
|
||||
catch (_: EvaluateException) {
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user