Refine ParameterizedPreparedStatementSetter nullability

This commit refines ParameterizedPreparedStatementSetter nullability
to ensure consistency with JdbcTemplate#batchUpdate.

Closes gh-35749
This commit is contained in:
Sébastien Deleuze
2025-11-17 10:31:56 +01:00
parent f42eea183e
commit 6b8552b4c1
@@ -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;
}