com.puppycrawl.tools.checkstyle.checks.coding

Class SimplifyBooleanReturnCheck

public class SimplifyBooleanReturnCheck extends Check

Checks for overly complicated boolean return statements. Idea shamelessly stolen from the equivalent PMD rule (pmd.sourceforge.net).

An example of how to configure the check is:

 <module name="SimplifyBooleanReturn"/>
 

Author: Lars Kühne

Method Summary
int[]getDefaultTokens()
{@inheritDoc}
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}