Skip to content

Fix #4813: [java] SwitchStmtsShouldHaveDefault false positive with pattern matching#5252

Merged
adangel merged 9 commits into
pmd:mainfrom
adangel:issue-4813
Oct 24, 2024
Merged

Fix #4813: [java] SwitchStmtsShouldHaveDefault false positive with pattern matching#5252
adangel merged 9 commits into
pmd:mainfrom
adangel:issue-4813

Conversation

@adangel

@adangel adangel commented Oct 4, 2024

Copy link
Copy Markdown
Member

Describe the PR

Switch Statements, that use pattern matching are simply ignored.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@adangel adangel added this to the 7.7.0 milestone Oct 4, 2024
Comment thread pmd-java/src/main/resources/category/java/bestpractices.xml Outdated
@ghost

ghost commented Oct 4, 2024

Copy link
Copy Markdown
1 Message
📖 Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 35 violations, 2 errors and 7 configuration errors.
Download full report as build artifact
Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 35 violations, 2 errors and 7 configuration errors.
Download full report as build artifact
Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 11 violations, 2 errors and 7 configuration errors.
Download full report as build artifact
Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 11 violations, 2 errors and 7 configuration errors.
Download full report as build artifact
Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 11 violations, 2 errors and 7 configuration errors.
Download full report as build artifact
Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 11 violations, 2 errors and 7 configuration errors.
Download full report as build artifact
Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 4 violations, 2 errors and 7 configuration errors.
Download full report as build artifact

Generated by 🚫 Danger

Comment thread pmd-java/src/main/resources/category/java/bestpractices.xml Outdated
@adangel adangel merged commit 4b23718 into pmd:main Oct 24, 2024
@adangel adangel deleted the issue-4813 branch October 24, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[java] SwitchStmtsShouldHaveDefault false positive with pattern matching

1 participant