-
Notifications
You must be signed in to change notification settings - Fork 112
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
new ListOf<>(array) violates PMD ArrayIsStoredDirectly #1053
Comments
@dgroup/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot! |
@yegor256 may be really it is better to disable this rule? https://pmd.github.io/pmd/pmd_rules_java_bestpractices.html#arrayisstoreddirectly |
@pnatashap well, it's a good rule, I believe. Maybe, we should take their rule, copy it to our code base, and then modify it so that it only alarms when this happens:
But doesn't alarm if:
|
@pnatashap @yegor256
The following code did not generate errors:
|
On qulice
v0.18.19
gives PMD
The user-supplied array 'args' is stored directly. (ArrayIsStoredDirectly)
.What's wrong with it?
The text was updated successfully, but these errors were encountered: