Skip to content

Commit a30112a

Browse files
committed
Correcting indices
1 parent 6c41618 commit a30112a

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
@@ -1289,8 +1289,7 @@ internal class CgMethodConstructor(val context: CgContext) : CgContextOwner by c
12891289
// arguments
12901290
for (index in genericExecution.stateBefore.parameters.indices) {
12911291
val argumentName = paramNames[executableUnderTest]?.get(index)
1292-
val paramIndex = if (executableUnderTest is MethodId && executableUnderTest.isStatic) index else index + 1
1293-
val paramType = executableUnderTestParameters[paramIndex].parameterizedType
1292+
val paramType = executableUnderTestParameters[index].parameterizedType
12941293

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

0 commit comments

Comments
 (0)