SqlRowSet accessor methods should be marked @Nullable #24042
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
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.
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.javaNeed to mark all
SqlRowSet
s methods which can returnnull
as@Nullable
to avoid static analyzer false-positive warnings.The text was updated successfully, but these errors were encountered: