Browse Source

Refine ParameterizedPreparedStatementSetter nullability

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

Closes gh-35749
pull/35866/head
Sébastien Deleuze 1 month ago
parent
commit
6b8552b4c1
  1. 4
      spring-jdbc/src/main/java/org/springframework/jdbc/core/ParameterizedPreparedStatementSetter.java

4
spring-jdbc/src/main/java/org/springframework/jdbc/core/ParameterizedPreparedStatementSetter.java

@ -19,8 +19,6 @@ package org.springframework.jdbc.core; @@ -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> { @@ -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;
}

Loading…
Cancel
Save