Implements http://jira.sonarsource.com/browse/RSPEC-1170 and replaces http://jira.sonarsource.com/browse/RSPEC-370
Manually tested !
Oups, the rule 'Final Field Could Be Static' must be removed from "Sonar way" quality profile.
That's SONARJAVA-203 again, so I'll close this ticket.
There are some false positives when array containers are used.
private final int firstUsage = new int;
Perhaps we should exclude initializers which contain a [, just like we exclude the ones having a (.
Good catch Dinesh, you can go ahead to support this exclusion !