File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-core/src/main/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,11 @@ public ReactiveAdapterRegistry() {
97
97
// We can fall back on "reactive-streams-flow-bridge" (once released)
98
98
99
99
// Coroutines
100
- if (ClassUtils .isPresent ("kotlinx.coroutines.Deferred" , classLoader )) {
100
+ if (reactorPresent && ClassUtils .isPresent ("kotlinx.coroutines.Deferred" , classLoader )) {
101
101
new CoroutinesRegistrar ().registerAdapters (this );
102
102
}
103
103
// TODO Use a single CoroutinesRegistrar when Flow will be not experimental anymore
104
- if (ClassUtils .isPresent ("kotlinx.coroutines.flow.Flow" , classLoader )) {
104
+ if (reactorPresent && ClassUtils .isPresent ("kotlinx.coroutines.flow.Flow" , classLoader )) {
105
105
new CoroutinesFlowRegistrar ().registerAdapters (this );
106
106
}
107
107
}
You can’t perform that action at this time.
0 commit comments