mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Adapt to Reactor 3.8 JSpecify annotations
Closes gh-35501 Signed-off-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
This commit is contained in:
committed by
Sébastien Deleuze
parent
0389684429
commit
b2c84ac038
+2
-1
@@ -20,6 +20,7 @@ import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import io.r2dbc.spi.Connection;
|
||||
@@ -176,7 +177,7 @@ public class SingleConnectionFactory extends DelegatingConnectionFactory
|
||||
this.connection =
|
||||
(isSuppressClose() ? getCloseSuppressingConnectionProxy(connectionToUse) : connectionToUse);
|
||||
}
|
||||
return this.connection;
|
||||
return Objects.requireNonNull(this.connection);
|
||||
}).flatMap(this::prepareConnection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user