mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-06 01:09:02 +00:00
Add more nullability annotations to module/spring-boot-flyway
See gh-46587
This commit is contained in:
+4
-2
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user