Skip to content

chore: Fix PMD issues from new dogfood rules - #6761

Merged
zbynek merged 2 commits into
pmd:mainfrom
adangel:chore/dogfood-new-rules
Jun 7, 2026
Merged

zbynek merged 2 commits into
pmd:mainfrom
adangel:chore/dogfood-new-rules

Conversation

@adangel

@adangel adangel commented Jun 4, 2026

Copy link
Copy Markdown
Member

Describe the PR

This fixes some issues. I plan to add a couple of new rules to our dogfood ruleset, see pmd/build-tools#165

In order to update build-tools, these should be fixed before...

Related issues

  • Fix #

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.26.0 milestone Jun 4, 2026
@adangel adangel added the in:pmd-internals Affects PMD's internals label Jun 4, 2026
System.out.println("URL==" + dbURI.getURL());
Class.forName(driverClass);
Object object = DriverManager.getDriver(dbURI.getURL());
// Object object = DriverManager.getDriver(dbURI.getURL());

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For these unused local variables, I opted for commenting this out.
We have #4216 to actually tackle these classes...

@adangel adangel mentioned this pull request Jun 4, 2026
4 tasks
@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

No relevant source code has been changed, pmdtester skipped.

(comment created at 2026-06-04 17:13:04+00:00 for 2908008)

@zbynek
zbynek merged commit 761f661 into pmd:main Jun 7, 2026
12 checks passed
@adangel
adangel deleted the chore/dogfood-new-rules branch June 11, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:pmd-internals Affects PMD's internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants