Skip to content

Improve nullability declarations for return types in [NamedParameter]JdbcOperations #34911

Open
@odrotbohm

Description

@odrotbohm

JdbcOperations.query(String, ResultSetExtractor<T>) is currently declared as @Nullable. Tweaking the declaration to:

<T extends @Nullable Object> T query(String sql, ResultSetExtractor<T> rse) throws DataAccessException;

would allow the tooling to deduce the nullability of T from the RSE handed into the method.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions