com.puppycrawl.tools.checkstyle.checks.coding
public class RedundantThrowsCheck extends AbstractTypeAwareCheck
An example of how to configure the check is:
<module name="RedundantThrows"> <property name="allowUnchecked" value="true"/> <property name="allowSubclasses" value="true"/> </module>
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
protected void | logLoadError(Token aIdent)
Logs error if unable to load class information. |
protected void | processAST(DetailAST aAST)
Checks exceptions declared in throws for a method or constructor. |
void | setAllowSubclasses(boolean aAllowSubclasses)
Getter for allowSubclasses property. |
void | setAllowUnchecked(boolean aAllowUnchecked)
Getter for allowUnchecked property. |
Parameters: aIdent class name for which we can no load class.
Parameters: aAST the tree node for the method or constructor.
Parameters: aAllowSubclasses whether subclass of another declared exception is allowed in throws clause
Parameters: aAllowUnchecked whether unchecked excpetions in throws are allowed or not