Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: cfee948e6ba2c67c940c260cadd390a8f7ef7c4b
      https://github.com/pmd/pmd/commit/cfee948e6ba2c67c940c260cadd390a8f7ef7c4b
  Author: Tanbir Hossain Ramim <[email protected]>
  Date:   2026-10-08 (Thu, 08 Oct 2026)

  Changed paths:
    M docs/pages/release_notes.md
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/bestpractices/CheckResultSetRule.java
    M 
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/CheckResultSet.xml

  Log Message:
  -----------
  [java] Fix #7063: CheckResultSet false positive with next() as ternary 
condition (#7066)

CheckResultSet accepted rs.next() as the condition of an if or while
statement, but reported it when used as the condition of a conditional
expression like rs.next() ? rs.getInt(1) : 0. Calls inside the condition
of a ternary are now treated as checked, the same as for if statements.



To unsubscribe from these emails, change your notification settings at 
https://github.com/pmd/pmd/settings/notifications


_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits

Reply via email to