Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: 983d42e00c4b027ef6a809b52a8349f5395a4d70
      https://github.com/pmd/pmd/commit/983d42e00c4b027ef6a809b52a8349f5395a4d70
  Author: Yuriy Tumanov <[email protected]>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

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

  Log Message:
  -----------
  [java] Fix #5159: UnusedAssignment: an assert statement may not run (#7104)

* [java] UnusedAssignment: an assert statement may not run

Assertions are disabled by default, so the dataflow pass must not treat an
assert as always evaluated. Visit its condition and detail message in a
forked state and join it with the state before the statement.

Fixes #5159

* [docs] Update release notes

---------

Co-authored-by: Sören Glimm <[email protected]>



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