File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/context/spring Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,12 @@ class SpringApplicationContextImpl(
88
88
.withFallback(origValueProvider)
89
89
.replaceTypes { description, type ->
90
90
typeReplacer.replaceTypeIfNeeded(type.classId)
91
- ?.takeIf { it != type.classId }
92
- ?.let { replacement ->
91
+ ?.let { replacementClassId ->
93
92
// TODO infer generic type of replacement
94
- toFuzzerType(replacement.jClass, description.typeCache).addProperties(
93
+ val replacement =
94
+ if (type.classId == replacementClassId) type
95
+ else toFuzzerType(replacementClassId.jClass, description.typeCache)
96
+ replacement.addProperties(
95
97
dynamicPropertiesOf(ReplacedFuzzedTypeFlag .withValue(Unit ))
96
98
)
97
99
} ? : type
You can’t perform that action at this time.
0 commit comments