com.twitter.common.checkstyle
Class IllegalThrowsCheck

java.lang.Object
  extended by com.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended by com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
          extended by com.puppycrawl.tools.checkstyle.api.Check
              extended by com.puppycrawl.tools.checkstyle.checks.coding.AbstractIllegalCheck
                  extended by com.twitter.common.checkstyle.IllegalThrowsCheck
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable

public class IllegalThrowsCheck
extends com.puppycrawl.tools.checkstyle.checks.coding.AbstractIllegalCheck

Relaxes the built-in checkstyle IllegalThrowsCheck by only checking non-overidden methods.


Constructor Summary
IllegalThrowsCheck()
          Creates a new check for illegal throws clauses..
 
Method Summary
 int[] getDefaultTokens()
           
protected  String getMessageBundle()
           
 int[] getRequiredTokens()
           
 void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST aDetailAST)
           
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.coding.AbstractIllegalCheck
isIllegalClassName, setIllegalClassNames
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getCustomMessages, getId, getSeverity, getSeverityLevel, log, setId, setSeverity
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IllegalThrowsCheck

public IllegalThrowsCheck()
Creates a new check for illegal throws clauses..

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
Specified by:
getDefaultTokens in class com.puppycrawl.tools.checkstyle.api.Check

getRequiredTokens

public int[] getRequiredTokens()
Overrides:
getRequiredTokens in class com.puppycrawl.tools.checkstyle.api.Check

visitToken

public void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST aDetailAST)
Overrides:
visitToken in class com.puppycrawl.tools.checkstyle.api.Check

getMessageBundle

protected String getMessageBundle()
Overrides:
getMessageBundle in class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter