View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.illegaltype;
2   
3   import static com.puppycrawl.tools.checkstyle.utils.CheckUtils.isElseIf;
4   import static com.puppycrawl.tools.checkstyle.utils.CheckUtils.*;
5   import static com.puppycrawl.tools.checkstyle.checks.coding.illegaltype.InputIllegalType.SomeStaticClass;
6   import com.puppycrawl.tools.checkstyle.api.DetailAST;
7   //configuration: "illegalClassNames": SomeStaticClass
8   public class InputIllegalTypeStaticImports
9   {
10       private boolean foo(DetailAST ast) {
11           return isElseIf(ast);
12       }
13       SomeStaticClass staticClass; //WARNING
14       private static SomeStaticClass foo1() { return null;}
15       private static void foo2(SomeStaticClass s) {}
16  }