GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [java] Fix False-positive UnnecessaryFullyQualifiedName when nested and non-nest… #4103 by OlegAndreych · Pull Request #4128 · pmd/pmd

Conversation

@OlegAndreych

@OlegAndreych OlegAndreych commented Sep 18, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

…ed classes with the same name and in the same package are used together #4085

Describe the PR

Additional search and exclusion of inner classes/interfaces with the same simple name as fully qualified class usage is added.

Related issues

  • Fixes [java] UnnecessaryFullyQualifiedName false positive when nested and non-nested classes with the same name and in the same package are used together #4085

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)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Oleg Andreych added 2 commits September 17, 2022 11:07
Oleg Andreych
False-positive UnnecessaryFullyQualifiedName when nested and non-nest…
7f7f8f7
…ed classes with the same name and in the same package are used together pmd#4085
Oleg Andreych
False-positive UnnecessaryFullyQualifiedName when nested and non-nest…
af30f4c
…ed classes with the same name and in the same package are used together pmd#4085

* Regression fix;
@OlegAndreych

ghost commented Sep 18, 2022

Copy link
Copy Markdown
Contributor Author

Unfortunately, I’ve messed up with the #4103, so I’ve created a new pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel added this to the 6.50.0 milestone Sep 29, 2022

ghost commented Sep 29, 2022 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
1 Message
📖 Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 2 errors and 6 configuration errors.
Full report
✅ Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 2 errors and 6 configuration errors.
Full report

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

adangel
adangel approved these changes Sep 29, 2022
View reviewed changes

ghost left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ain/java/net/sourceforge/pmd/lang/java/rule/codestyle/UnnecessaryFullyQualifiedNameRule.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/UnnecessaryFullyQualifiedName.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/UnnecessaryFullyQualifiedName.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andreas Dangel
Fixups from review (pmd#4128)
792fe44
@adangel
adangel merged commit 792fe44 into pmd:master Sep 29, 2022
@OlegAndreych
OlegAndreych deleted the Fix_#4103 branch September 29, 2022 15:17
@adangel adangel mentioned this pull request Sep 30, 2022
[java] UnnecessaryFullyQualifiedName - FP for inner class pkg.ClassA.Foo implementing pkg.Foo #4133
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Couldn't load reviewers.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

Couldn't load assignees.

Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.