mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[performance tests] fix spans for rename preparation (find usages + conflicts detection)
- new javac generates names as ClassName$$Lambda/ GitOrigin-RevId: 7c1c0a7fc2d1cc5239701e0e61e0b20ba3246884
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3935aeed34
commit
4230082f8f
+1
-1
@@ -83,7 +83,7 @@ class FinishInlineRename(text: String, line: Int) : AbstractCommand(text, line)
|
||||
|
||||
private fun getEnclosingClassOfLambda(lambda: Class<Runnable>): Class<*>? {
|
||||
val commandClass = lambda.name
|
||||
val lambdaOffset = commandClass.indexOf("\$\$Lambda\$")
|
||||
val lambdaOffset = commandClass.indexOf("\$\$Lambda\$").takeIf { it >= 0 } ?: commandClass.indexOf("\$\$Lambda/")
|
||||
if (lambdaOffset > 0) {
|
||||
return Class.forName(commandClass.substring(0, lambdaOffset))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user