I was using a the reviewer "codePro Tools" by google and it flagged the flowing:
new Object[] { max }
with "Statically initialized array"
Explanation:
An array initializer is being used to initialize an array.
Recommendation
- The array should be initialized dynamically.
are there a good reason for this? or is just better to ignore.
this flag is on a section of rules called "code style".
Thanks