Polish Polish R2dbcObservationAutoConfiguration
This commit is contained in:
parent
20d264150b
commit
e677eb7759
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue