Add more nullability annotations to module/spring-boot-flyway

See gh-46587
This commit is contained in:
Moritz Halbritter
2025-08-01 09:16:11 +02:00
parent 4734bef5de
commit 78ec5ce3f9
@@ -16,6 +16,8 @@
package org.springframework.boot.flyway.docker.compose;
import org.jspecify.annotations.Nullable;
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory;
import org.springframework.boot.flyway.autoconfigure.FlywayConnectionDetails;
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
@@ -34,12 +36,12 @@ class JdbcAdaptingFlywayConnectionDetailsFactory
return new FlywayConnectionDetails() {
@Override
public String getUsername() {
public @Nullable String getUsername() {
return input.getUsername();
}
@Override
public String getPassword() {
public @Nullable String getPassword() {
return input.getPassword();
}