Skip to content

SqlRowSet accessor methods should be marked @Nullable #24042

@turbanoff

Description

@turbanoff

We use org.springframework.jdbc.support.rowset.SqlRowSet in our project to extract data from PostgreSQL.
Recently I found out that IntelliJ IDEA shows warning where it shouldn't be.
image
As I understand it's because IDEA thinks that SqlRowSet.getString always return non-null value. But it's not true. It's because of @NonNullApi annotation in https://github.com/spring-projects/spring-framework/blob/master/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/package-info.java

Need to mark all SqlRowSets methods which can return null as @Nullable to avoid static analyzer false-positive warnings.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions