Findbugs has a rule, EI_EXPOSE_REP, which provides a warning when a getter exposes an internal representation by returning a reference to a mutable object:
example:
public Object[] getArgs()
{
return _args;
}
Comment the exception for EI_EXPOSE_REP out of the findbugs-exclude.xml and then go through core and components and fix these issues.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira