Warning: Redundant throws: 'xxxException' is unchecked exception.

Jeff Mutonho <[email protected]> Tue, 6 Jul 2010 09:48:50 +0200
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi there

I'm running Checkstyle from Ant, using checkstyle-all-5.0.jar  and a project
specific config file. The check for redundant throws is
specified as :

        <module name="RedundantThrows">
            <property name="logLoadErrors" value="true"/>
            <property name="suppressLoadErrors" value="true"/>
        </module>

In my code, there are classes that declare a "throws SecurityException" .
SecurityException extends ApplicationException which directly extends
java.lang.Exception.

The Checkstyle report is reporting a warning which says :
"Redundant throws: 'SecurityException' is unchecked exception."

Why is Checkstyle reporting a check exception as being an unchecked one?

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user