[IG] Redundant throws clause inspection

The "Redundant throws clause inspection" doesn't take into account implicit
calls to super() from within a constructor.
For example, running a code inspection on the following file:

presents the following inspection results:

constructor Testing()

Testing ()

Problem synopsis:
The declared exception Exception is never thrown.

Problem resolution:
Remove unnecessary throws declarations

1 comment
Comment actions Permalink

Oy! This is going to be fun to fix, not least because there's probably fifty other inspections which aren't taking the implicit super() call into account. Good catch.

--Dave Griffith


Please sign in to leave a comment.