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