Skip to content

[java] Update ArrayIsStoredDirectly and MethodReturnsInternalArray#3127

Merged
adangel merged 13 commits into
pmd:pmd/7.0.xfrom
oowekyala:java-more-rules-2-sunsecure
Mar 9, 2021
Merged

[java] Update ArrayIsStoredDirectly and MethodReturnsInternalArray#3127
adangel merged 13 commits into
pmd:pmd/7.0.xfrom
oowekyala:java-more-rules-2-sunsecure

Conversation

@oowekyala

Copy link
Copy Markdown
Member

Describe the PR

Update ArrayIsStoredDirectly and MethodReturnsInternalArray, remove their abstract base class.

ArrayIsStoredDirectly now reports on the assignment and not the formal parameter so line numbers will probably move. May be worth mentioning in #3123

Related issues

Ready?

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

@oowekyala oowekyala added this to the 7.0.0 milestone Feb 19, 2021
@ghost

ghost commented Feb 19, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 481 new violations, 1 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 2334 violations,
introduces 6093 new violations, 2 new errors and 0 new configuration errors,
removes 15188 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 540 new violations, 1 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 2334 violations,
introduces 6152 new violations, 2 new errors and 0 new configuration errors,
removes 15188 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 465 new violations, 0 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 2334 violations,
introduces 6083 new violations, 2 new errors and 0 new configuration errors,
removes 15194 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 466 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 2334 violations,
introduces 6084 new violations, 2 new errors and 0 new configuration errors,
removes 15193 violations, 10 errors and 2 configuration errors.
Full report

Generated by 🚫 Danger

@oowekyala

Copy link
Copy Markdown
Member Author

Summary of the differences,

@adangel

adangel commented Mar 5, 2021

Copy link
Copy Markdown
Member

Yes, ArrayIsStoredDirectly looks fine.

For MethodReturnsInternalArray, I see these two issues:

I'll try to look into these two issues now....

@adangel

adangel commented Mar 5, 2021

Copy link
Copy Markdown
Member

@oowekyala I've pushed some commits:

@adangel adangel self-assigned this Mar 9, 2021
@adangel adangel merged commit a2a8401 into pmd:pmd/7.0.x Mar 9, 2021
@oowekyala oowekyala deleted the java-more-rules-2-sunsecure branch March 9, 2021 20:22
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
adangel added a commit to adangel/pmd that referenced this pull request Apr 27, 2023
and not anymore on formal parameter.

Refs pmd#3127
Refs pmd#3123
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