diff --git a/docs/config_misc.html b/docs/config_misc.html index f65d59964..f4177f3d5 100644 --- a/docs/config_misc.html +++ b/docs/config_misc.html @@ -52,6 +52,25 @@
  • UpperEll
  • +
  • + AvoidInlineConditionals +
  • +
    docs missing for: +
  • + InterfaceIsType +
  • +
  • + HideUtilityClassConstructor +
  • +
  • + DesignForInheritance +
  • +
  • + ArrayTypeStyle +
  • +
  • + FinalParameters +
  • @@ -477,6 +496,41 @@ like 1. TreeWalker

    + +

    AvoidInlineConditionals

    Description

    +

    + Detects inline conditionals. + + An example inline conditional is this: +

    +
    +String a = getParameter("a");
    +String b = (a==null || a.length<1) ? null : a.substring(1);
    +      
    +

    + Rationale: Some developers find inline conditionals hard to read, + so their company's coding standards forbids them. +

    +

    + Rationale: Some developers find inline conditionals hard to read, + so their company's coding standards forbids them. +

    +

    Examples

    +

    + To configure the check: +

    +
    +<module name="AvoidInlineConditionals"/>
    +      
    +

    Package

    +

    + com.puppycrawl.tools.checkstyle.checks +

    +

    Parent Module

    +

    + TreeWalker +

    +