Polish Polish R2dbcObservationAutoConfiguration

This commit is contained in:
Moritz Halbritter
2023-08-02 12:14:03 +02:00
parent 20d264150b
commit e677eb7759

View File

@@ -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);