mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-08 10:19:13 +00:00
Add nullability annotations to module/spring-boot-data-jdbc
See gh-46587
This commit is contained in:
+5
-3
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.boot.data.jdbc.autoconfigure;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
@@ -31,13 +33,13 @@ public class JdbcDataProperties {
|
||||
* Dialect to use. By default, the dialect is determined by inspecting the database
|
||||
* connection.
|
||||
*/
|
||||
private JdbcDatabaseDialect dialect;
|
||||
private @Nullable JdbcDatabaseDialect dialect;
|
||||
|
||||
public JdbcDatabaseDialect getDialect() {
|
||||
public @Nullable JdbcDatabaseDialect getDialect() {
|
||||
return this.dialect;
|
||||
}
|
||||
|
||||
public void setDialect(JdbcDatabaseDialect dialect) {
|
||||
public void setDialect(@Nullable JdbcDatabaseDialect dialect) {
|
||||
this.dialect = dialect;
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -17,4 +17,7 @@
|
||||
/**
|
||||
* Auto-configuration for Spring Data JDBC.
|
||||
*/
|
||||
@NullMarked
|
||||
package org.springframework.boot.data.jdbc.autoconfigure;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
Reference in New Issue
Block a user