Menu

#1390 Different SignatureDeclareThrowsException is in strict exceptions AND type resolution rulesets

New Tickets
open
nobody
None
PMD
4-Minor
Bug
5.2.3 (is what we are using)
SignatureDeclareThrowsException
2015-08-06
2015-08-06
Scott L
No

The SignatureDeclareThrowsException rule is declared in both the Strict Exceptions and Type Resolution rule sets. As a result if you want to exclude this rule, you have to know to exclude for both rule sets (it just took me a while to find out why I was still getting violations, and this was the reason).

Not sure why it is named exactly the same thing...the actual classes are different and the newer SignatureDeclareThrowsException rule in Type Resolution adds a IgnoreJUnitCompletely property. Otherwise they seem to do the same thing.

Not sure why the same rule is effectively duplicated, but at the least they probably should not have the exact same name.

Discussion


Log in to post a comment.