Skip to content

[java] Update rule UnusedNullCheckInEquals#3485

Merged
oowekyala merged 2 commits into
pmd:pmd/7.0.xfrom
adangel:pmd7-update-UnusedNullCheckInEquals
Sep 18, 2021
Merged

[java] Update rule UnusedNullCheckInEquals#3485
oowekyala merged 2 commits into
pmd:pmd/7.0.xfrom
adangel:pmd7-update-UnusedNullCheckInEquals

Conversation

@adangel

@adangel adangel commented Aug 21, 2021

Copy link
Copy Markdown
Member

Part of #2701

@adangel adangel added this to the 7.0.0 milestone Aug 21, 2021
@ghost

ghost commented Aug 21, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 28 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 31204 violations,
introduces 21146 new violations, 3 new errors and 0 new configuration errors,
removes 137936 violations, 8 errors and 3 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 28 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 30924 violations,
introduces 37960 new violations, 3 new errors and 0 new configuration errors,
removes 138288 violations, 8 errors and 3 configuration errors.
Full report

Generated by 🚫 Danger

@adangel

adangel commented Aug 21, 2021

Copy link
Copy Markdown
Member Author

False negatives:

match = (thatPd != null && thisPdClass == thatPd.getClass() && thisPd.equals(thatPd));

False positives:

if (val != null && "".equals (val)) {

Update: Both are fixed now ✔️

@oowekyala oowekyala merged commit 4e65cba into pmd:pmd/7.0.x Sep 18, 2021
@adangel adangel deleted the pmd7-update-UnusedNullCheckInEquals branch February 25, 2022 14:08
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
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.

2 participants