Is your feature request related to a problem? Please describe.
The rule ArrayIsStoredDirectly reports the formal parameter of the method / constructor which is an array and which is stored directly.
It would be more useful, if the rule reported where the array is stored.
Example:
public class ExampleAISD { public String[] strs; public void func(String[] strs, boolean flag) { // line 5 if (flag) { this.strs = strs; // line 7 } } }
Instead of line 5, line 7 should be reported.
Describe the solution you'd like
Report the assignment node instead.
Describe alternatives you've considered
None.
Additional context
See #3879 for original request
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4