Skip to content

Commit c0e57ae

Browse files
committed
Correcting indices
1 parent 417e5d5 commit c0e57ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgMethodConstructor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,8 +1239,7 @@ internal class CgMethodConstructor(val context: CgContext) : CgContextOwner by c
12391239
// arguments
12401240
for (index in genericExecution.stateBefore.parameters.indices) {
12411241
val argumentName = paramNames[executableUnderTest]?.get(index)
1242-
val paramIndex = if (executableUnderTest is MethodId && executableUnderTest.isStatic) index else index + 1
1243-
val paramType = executableUnderTestParameters[paramIndex].parameterizedType
1242+
val paramType = executableUnderTestParameters[index].parameterizedType
12441243

12451244
val argumentType = when {
12461245
paramType is Class<*> && paramType.isArray -> paramType.id

0 commit comments

Comments
 (0)