You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java] CheckResultSet: False positive with ResultSet.next() in a while loop #5031
PMD reports a violation in BeanProcessor.java, but that's wrong. That's a false positive.
<suppressedviolation filename="C:\Users\ggregory\git\a\commons-dbutils\src\main\java\org\apache\commons\dbutils\BeanProcessor.java"
suppressiontype="//nopmd"
msg="Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet."
usermsg=" False positive CheckResultSet
changed the title [-][jaav] False positive CheckResultSet with ResultSet.next() in a while loop[/-][+][java] False positive CheckResultSet with ResultSet.next() in a while loop[/+]on May 22, 2024
changed the title [-][java] False positive CheckResultSet with ResultSet.next() in a while loop[/-][+][java] CheckResultSet: False positive with ResultSet.next() in a while loop[/+]on Sep 12, 2024
Activity
[-][jaav] False positive CheckResultSet with ResultSet.next() in a while loop[/-][+][java] False positive CheckResultSet with ResultSet.next() in a while loop[/+][-][java] False positive CheckResultSet with ResultSet.next() in a while loop[/-][+][java] CheckResultSet: False positive with ResultSet.next() in a while loop[/+]jbisotti commentedon Aug 29, 2025
I'm seeing the same this with this code...
UncleOwen commentedon Apr 5, 2026
@jbisotti I tried to reproduce using PMD 7.23 and the following code:
I get no warning.
With the code from @garydgregory I do get a warning.