Polishing

This commit is contained in:
Juergen Hoeller
2026-10-05 17:20:54 +02:00
parent 08e8408b45
commit 0a84a41b3a
2 changed files with 2 additions and 2 deletions
@@ -20,6 +20,7 @@ import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.Supplier;
import org.jspecify.annotations.NonNull;
import org.jspecify.annotations.Nullable;
import org.springframework.lang.Contract;
@@ -131,7 +132,7 @@ public class SingletonSupplier<T extends @Nullable Object> implements Supplier<T
* @return the singleton instance (never {@code null})
* @throws IllegalStateException in case of no instance
*/
public T obtain() {
public @NonNull T obtain() {
T instance = get();
Assert.state(instance != null, "No instance from Supplier");
return instance;
@@ -426,7 +426,6 @@ public class NamedParameterJdbcTemplate implements NamedParameterJdbcOperations
@Nullable Object[] values = NamedParameterUtils.buildValueArray(parsedSql, batchArgs[i], null);
pscf.newPreparedStatementSetter(values).setValues(ps);
}
@Override
public int getBatchSize() {
return batchArgs.length;