Implements http://jira.sonarsource.com/browse/RSPEC-1166 and replaces :
Rule: Exceptions should not be caught and immediately rethrown
First implementation done, but I tend to think that the rethrow case should be more permissive, and not require a context.
Would be better with a non-empty issue message !
Manually tested !
Okie, so I guess we do not handle rethrowing of a checked by an unchecked exception specially.
As discussed @Dinesh, could update both the description and implementation of this rule to cover exception propagation mechanism. Spec ticket updated.
Should be done!
Went from 5830 issues down to 5654 on the JDK7 codebase.
As discussed, the notion of 'propagation' must be relaxed to allow conversion of checked into unchecked exceptions.
And that should be fixed too now!
Let's hope the results will look better.
Manually tested and rule description updated !