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
If a switch-case over a enum is used inside the enum itself, PMD wrongly requests to add a default case, even though the switch statement is exhaustive. The switch is over this:
Affects PMD Version: 6.29.0
Rule: SwitchStmtsShouldHaveDefault
Description:
If a switch-case over a enum is used inside the enum itself, PMD wrongly requests to add a default case, even though the switch statement is exhaustive. The switch is over
this
:Code Sample demonstrating the issue:
Result:
myPackage/GradeSystem.java:8: Switch statements should have a default label
Expected outcome:
Running PMD through: CLI
The text was updated successfully, but these errors were encountered: