Polish Polish R2dbcObservationAutoConfiguration

pull/36682/head
Moritz Halbritter 1 year ago
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…
Cancel
Save