Class BooleanExpressionComplexityCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public final class BooleanExpressionComplexityCheck
    extends AbstractCheck
    Restricts nested boolean operators (&&, ||, &, | and ^) to a specified depth (default = 3). Note: &, | and ^ are not checked if they are part of constructor or method call because they can be applied to non boolean variables and Checkstyle does not know types of methods from different classes.
    Author:
    Simon Harris, o_sukhodolsky