This is one of the rules from Googles static analyser CodePro AnalytiX:
Summary
Arrays should not be statically initialized by an array initializer.
Description
This audit rule checks for array variables that are initialized (either in the initializer or in an assignment statement) using an array initializer.
Example
The following array declaration would be flagged because of the use of an array initializer:
int[] values = {0, 1, 2};
Now, I can disable it if I don't like it, that's not a problem. But I'm wondering why would this be a problem, and what would be the solution to keep that code from being flagged by the audit rule?