@@ -212,8 +212,6 @@ import java.lang.reflect.GenericArrayType
212
212
import java.lang.reflect.TypeVariable
213
213
import java.lang.reflect.WildcardType
214
214
import java.util.concurrent.atomic.AtomicInteger
215
- import kotlin.reflect.full.instanceParameter
216
- import kotlin.reflect.jvm.javaType
217
215
218
216
private val CAUGHT_EXCEPTION = LocalVariable (" @caughtexception" )
219
217
@@ -682,7 +680,7 @@ class Traverser(
682
680
}
683
681
684
682
private fun isStaticInstanceInMethodResult (id : ClassId , methodResult : MethodResult ? ) =
685
- methodResult != null && id in methodResult.memoryUpdates.staticInstanceStorage
683
+ methodResult != null && id in methodResult.symbolicStateUpdate. memoryUpdates.staticInstanceStorage
686
684
687
685
private fun TraversalContext.skipVerticesForThrowableCreation (current : JAssignStmt ) {
688
686
val rightType = current.rightOp.type as RefType
@@ -1030,7 +1028,6 @@ class Traverser(
1030
1028
*/
1031
1029
private fun updateGenericTypeInfo (identityRef : IdentityRef , value : ReferenceValue ) {
1032
1030
val callable = methodUnderTest.executable
1033
- val kCallable = ::updateGenericTypeInfo
1034
1031
val type = if (identityRef is ThisRef ) {
1035
1032
// TODO: for ThisRef both methods don't return parameterized type
1036
1033
if (methodUnderTest.isConstructor) {
@@ -2359,7 +2356,7 @@ class Traverser(
2359
2356
MethodResult (
2360
2357
mockValue,
2361
2358
hardConstraints = additionalConstraint.asHardConstraint(),
2362
- memoryUpdates = if (isInternalMock) MemoryUpdate () else mockMethodResult.memoryUpdates
2359
+ memoryUpdates = if (isInternalMock) MemoryUpdate () else mockMethodResult.symbolicStateUpdate. memoryUpdates
2363
2360
)
2364
2361
)
2365
2362
}
0 commit comments