Skip to content

[java] Rename ASTMethodDeclaration#isOverridden() to isOverride() - #6812

Merged
adangel merged 7 commits into
pmd:mainfrom
UncleOwen:rename-isOverridden
Jun 29, 2026
Merged

adangel merged 7 commits into
pmd:mainfrom
UncleOwen:rename-isOverridden

Conversation

@UncleOwen

Copy link
Copy Markdown
Member

Describe the PR

This PR renames ASTMethodDeclaration.isOverridden() to isOverride(). The old method is kept, but deprecated.

Rationale

Both the old method name and the old javadoc were wrong. The method doesn't return true, if the method is overridden - it returns true, if the method overrides a method in the super class

Related issues

  • None

Ready?

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

@pmd-actions-helper

pmd-actions-helper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 137 violations, 0 errors and 0 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-06-29 07:12:03+00:00 for 4966774)

@UncleOwen

Copy link
Copy Markdown
Member Author

Do we have a section in the release notes for XPath changes?

@adangel adangel added the is:deprecation The main focus is deprecating public APIs or rules, eg to make them internal, or removing them label Jun 29, 2026
@adangel adangel changed the title [java] Rename ASTMethodDeclaration.isOverridden [java] Rename ASTMethodDeclaration::isOverridden Jun 29, 2026
@adangel adangel changed the title [java] Rename ASTMethodDeclaration::isOverridden [java] Rename ASTMethodDeclaration#isOverridden() to isOverride() Jun 29, 2026
@adangel adangel added this to the 7.26.0 milestone Jun 29, 2026
@adangel

adangel commented Jun 29, 2026

Copy link
Copy Markdown
Member

Do we have a section in the release notes for XPath changes?

I'll add a sentence to the deprecation section in the release notes. We don't have a specific section for XPath.

@adangel
adangel merged commit 41f0d39 into pmd:main Jun 29, 2026
2 checks passed
@UncleOwen
UncleOwen deleted the rename-isOverridden branch June 29, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is:deprecation The main focus is deprecating public APIs or rules, eg to make them internal, or removing them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants