I have seen the link before asking question here, I wonder why SONAR complaining only arrays and not custom objects.
Because same problem can occur in the custom objects we declare in the bean as well. And also, i couldnt agree why we need to take copy as we like to modify the same array that's why we have setters and all correct?
Kindly help me to understand, SONAR is showing more number of violations in this category.