File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,7 @@ import org.utbot.framework.fields.ModifiedFields
26
26
import org.utbot.framework.fields.StateModificationInfo
27
27
import org.utbot.framework.plugin.api.ClassId
28
28
import org.utbot.framework.plugin.api.UtSymbolicExecution
29
- import org.utbot.framework.plugin.api.util.hasField
30
- import org.utbot.framework.plugin.api.util.id
31
- import org.utbot.framework.plugin.api.util.isArray
32
- import org.utbot.framework.plugin.api.util.isRefType
33
- import org.utbot.framework.plugin.api.util.objectClassId
29
+ import org.utbot.framework.plugin.api.util.*
34
30
import org.utbot.framework.util.hasThisInstance
35
31
import org.utbot.fuzzer.UtFuzzedExecution
36
32
import java.lang.reflect.Array
@@ -139,7 +135,7 @@ internal class CgFieldStateManagerImpl(val context: CgContext)
139
135
emptyLineIfNeeded()
140
136
val fields = when (state) {
141
137
FieldState .INITIAL -> modifiedFields
142
- .filter { it.path.elements.isNotEmpty() && it.path.fieldType.isRefType }
138
+ .filter { it.path.elements.isNotEmpty() && ! it.path.fieldType.isPrimitive }
143
139
.filter { needExpectedDeclaration(it.after) }
144
140
FieldState .FINAL -> modifiedFields
145
141
}
You can’t perform that action at this time.
0 commit comments