Details
Description
With verbose output on, a pmd error in an inner class will produce output like,
[INFO] PMD Failure: foo.bar.Anonymous$1:182 Rule:SignatureDeclareThrowsException Priority:3 A method/constructor shouldn't explicitly throw java.lang.Exception.
Rather than printing the class name, it would be more useful to print out the file name.
Issue Links
- depends upon
-
MPMD-78
Update to PMD 4.2.1
-
This is really an issue with the xml format in pmd. It's not giving the correct info for inner classes, whether they're anonymous or not as the enclosing class name is not part of the report. I'll fix it in pmd itself.