mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-27 12:39:03 +00:00
Polish Polish R2dbcObservationAutoConfiguration
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ public class R2dbcObservationAutoConfiguration {
|
||||
ConnectionFactoryOptions options = optionsCapableConnectionFactory.getOptions();
|
||||
Object host = options.getValue(ConnectionFactoryOptions.HOST);
|
||||
Object port = options.getValue(ConnectionFactoryOptions.PORT);
|
||||
if ((!(host instanceof String hostAsString) || !(port instanceof Integer portAsInt))) {
|
||||
if (!(host instanceof String hostAsString) || !(port instanceof Integer portAsInt)) {
|
||||
return HostAndPort.empty();
|
||||
}
|
||||
return new HostAndPort(hostAsString, portAsInt);
|
||||
|
||||
Reference in New Issue
Block a user