mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Refine ParameterizedPreparedStatementSetter nullability
This commit refines ParameterizedPreparedStatementSetter nullability to ensure consistency with JdbcTemplate#batchUpdate. Closes gh-35749
This commit is contained in:
+1
-3
@@ -19,8 +19,6 @@ package org.springframework.jdbc.core;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Parameterized callback interface used by the {@link JdbcTemplate} class for
|
||||
* batch updates.
|
||||
@@ -49,6 +47,6 @@ public interface ParameterizedPreparedStatementSetter<T> {
|
||||
* @param argument the object containing the values to be set
|
||||
* @throws SQLException if an SQLException is encountered (i.e. there is no need to catch SQLException)
|
||||
*/
|
||||
void setValues(PreparedStatement ps, @Nullable T argument) throws SQLException;
|
||||
void setValues(PreparedStatement ps, T argument) throws SQLException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user