[java] SwitchStmtsShouldHaveDefault should ignore patterns

Fixes #4813
This commit is contained in:
Andreas Dangel
2024-10-04 16:03:21 +02:00
parent a0818d5ab2
commit 0c858b0a7b
3 changed files with 83 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ The old rule names still work but are deprecated.
### 🐛 Fixed Issues
* java
* [#4532](https://github.com/pmd/pmd/issues/4532): \[java] Rule misnomer for JUnit* rules
* java-bestpractices
* [#4813](https://github.com/pmd/pmd/issues/4813): \[java] SwitchStmtsShouldHaveDefault false positive with pattern matching
* java-errorprone
* [#5067](https://github.com/pmd/pmd/issues/5067): \[java] CloseResource: False positive for FileSystems.getDefault()