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 @@ -28,11 +28,7 @@ import org.utbot.framework.fields.ModifiedFields
28
28
import org.utbot.framework.fields.StateModificationInfo
29
29
import org.utbot.framework.plugin.api.ClassId
30
30
import org.utbot.framework.plugin.api.UtSymbolicExecution
31
- import org.utbot.framework.plugin.api.util.hasField
32
- import org.utbot.framework.plugin.api.util.id
33
- import org.utbot.framework.plugin.api.util.isArray
34
- import org.utbot.framework.plugin.api.util.isRefType
35
- import org.utbot.framework.plugin.api.util.objectClassId
31
+ import org.utbot.framework.plugin.api.util.*
36
32
import org.utbot.framework.util.hasThisInstance
37
33
import org.utbot.fuzzer.UtFuzzedExecution
38
34
import java.lang.reflect.Array
@@ -141,7 +137,7 @@ internal class CgFieldStateManagerImpl(val context: CgContext)
141
137
emptyLineIfNeeded()
142
138
val fields = when (state) {
143
139
FieldState .INITIAL -> modifiedFields
144
- .filter { it.path.elements.isNotEmpty() && it.path.fieldType.isRefType }
140
+ .filter { it.path.elements.isNotEmpty() && ! it.path.fieldType.isPrimitive }
145
141
.filter { needExpectedDeclaration(it.after) }
146
142
FieldState .FINAL -> modifiedFields
147
143
}
You can’t perform that action at this time.
0 commit comments