Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java] Fix issue #1736 and issue #2207 #2558

Merged
merged 11 commits into from
Jul 16, 2020
Merged

[java] Fix issue #1736 and issue #2207 #2558

merged 11 commits into from
Jul 16, 2020

Conversation

YYoungC
Copy link
Contributor

@YYoungC YYoungC commented May 31, 2020

Describe the PR

Related issues

Ready?

  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • Added (in-code) documentation (if needed)

@pmd-test
Copy link

pmd-test commented May 31, 2020

1 Message
📖 This changeset introduces 85 new violations, 0 new errors and 0 new configuration errors,
removes 241 violations, 2 errors and 2 configuration errors.
Full report
This changeset introduces 85 new violations, 0 new errors and 0 new configuration errors,
removes 243 violations, 2 errors and 2 configuration errors.
Full report
This changeset introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 819 violations, 2 errors and 2 configuration errors.
Full report

Generated by 🚫 Danger

@YYoungC YYoungC changed the title Fix issue #1736 and issue #2207 [Java] Fix issue #1736 and issue #2207 May 31, 2020
@YYoungC YYoungC changed the title [Java] Fix issue #1736 and issue #2207 [java] Fix issue #1736 and issue #2207 May 31, 2020
Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

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

@adangel adangel added the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Jun 13, 2020
@adangel adangel removed the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Jul 13, 2020
@adangel
Copy link
Member

adangel commented Jul 16, 2020

There are still many new violations, but these are ok - they have been actually false-negative, as this rule was not using rule chain previously but still short-circuited the visitor by returning data. Now all AllocationExpressions are visisted, even nested ones in a anonymous class allocation expression, when the anonymous class is not within a loop.

I'll merge that now.

adangel added a commit that referenced this pull request Jul 16, 2020
[java] Fix issue #1736 and issue #2207 #2558
@adangel adangel merged commit cc408d2 into pmd:master Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants