Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: df58615274c3b2d0d70a45d4b061d1f824eff50f
      https://github.com/pmd/pmd/commit/df58615274c3b2d0d70a45d4b061d1f824eff50f
  Author: Sören Glimm <[email protected]>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M docs/pages/release_notes.md
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTSwitchLike.java
    A 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/bestpractices/ExhaustiveSwitchHasDefaultRule.java
    M pmd-java/src/main/resources/category/java/bestpractices.xml
    M 
pmd-java/src/test/java/net/sourceforge/pmd/lang/java/ast/ASTSwitchLikeTest.java
    M 
pmd-java/src/test/java/net/sourceforge/pmd/lang/java/rule/bestpractices/ExhaustiveSwitchHasDefaultTest.java
    M 
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/ExhaustiveSwitchHasDefault.xml

  Log Message:
  -----------
  [java] Fix #5670, #5514: ExhaustiveSwitchHasDefault when default is necessary 
(#6822)

* Add note about switch statement.

See https://github.com/pmd/pmd/issues/5514#issuecomment-2687365412

* Rewrite ExhaustiveSwitchHasDefault in Java

* Add ASTSwitchLike.getDefaultCase

* Add ExhaustiveSwitchHasDefaultRule.defaultBranchJustThrows

* Add ExhaustiveSwitchHasDefaultRule.defaultBranchIsNecessary

* Add test

* [docs] Update release notes

* Add javadoc

* Update 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTSwitchLike.java

Co-authored-by: Andreas Dangel <[email protected]>

* Fix autocomplete-typo

---------

Co-authored-by: Andreas Dangel <[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