File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ object UtTestsDialogProcessor {
162
162
isCanceled = { indicator.isCanceled })
163
163
164
164
for (srcClass in model.srcClasses) {
165
- val methods = ReadAction .nonBlocking<List <ExecutableId >> {
165
+ val ( methods, className) = ReadAction .nonBlocking<Pair < List <ExecutableId >, String? >> {
166
166
val canonicalName = srcClass.canonicalName
167
167
val clazz = classLoader.loadClass(canonicalName).kotlin
168
168
psi2KClass[srcClass] = clazz
@@ -180,10 +180,9 @@ object UtTestsDialogProcessor {
180
180
clazz.allNestedClasses.flatMap {
181
181
findMethodsInClassMatchingSelected(it, srcMethods)
182
182
}
183
- })
183
+ }) to srcClass.name
184
184
}.executeSynchronously()
185
185
186
- val className = srcClass.name
187
186
if (methods.isEmpty()) {
188
187
logger.error { " No methods matching selected found in class $className ." }
189
188
continue
You can’t perform that action at this time.
0 commit comments