Bugs item #2561057, was opened at 2009-02-03 15:08
Message generated for change (Settings changed) made by wilkinp
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=2561057&group_id=29721
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: usage
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Philip Wilkinson (wilkinp)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Reports expected @Throws tag when tag present
Initial Comment:
/**
* test checkstyle throws rule
* @author me
*/
public class TestThrows
{
/**
* optimise component.
* @param component String
* @return Object
* @throws java.lang.Exception
*/
public final Object optimiseComponent(final String component) throws Exception
{
throw new Exception("Not supported yet.");
}
}
The above code causes checkstyle 4.4 to report that it "Expected @Throws tag for ‘Exception’".
The @Throws tag exists. It was auto generated by netbeans.
It doesn't matter if its @throws java.lang.Exception or @throws Exception.
I've had to disable this check with..
<module name="JavadocMethod">
<property name="allowMissingThrowsTags" value="true"/>
</module>
in the checkstyle configuration file.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=2561057&group_id=29721
|