Skip to content

Commit 78ec5ce

Browse files
committed
Add more nullability annotations to module/spring-boot-flyway
See gh-46587
1 parent 4734bef commit 78ec5ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

module/spring-boot-flyway/src/main/java/org/springframework/boot/flyway/docker/compose/JdbcAdaptingFlywayConnectionDetailsFactory.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.boot.flyway.docker.compose;
1818

19+
import org.jspecify.annotations.Nullable;
20+
1921
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory;
2022
import org.springframework.boot.flyway.autoconfigure.FlywayConnectionDetails;
2123
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
@@ -34,12 +36,12 @@ public FlywayConnectionDetails getConnectionDetails(JdbcConnectionDetails input)
3436
return new FlywayConnectionDetails() {
3537

3638
@Override
37-
public String getUsername() {
39+
public @Nullable String getUsername() {
3840
return input.getUsername();
3941
}
4042

4143
@Override
42-
public String getPassword() {
44+
public @Nullable String getPassword() {
4345
return input.getPassword();
4446
}
4547

0 commit comments

Comments
 (0)