View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.illegaltype;
2   import java.util.TreeSet;
3   import java.util.Hashtable;
4   //configuration: default
5   public class InputIllegalTypeMemberModifiers {
6       private AbstractClass a = null; //WARNING
7       private NotAnAbstractClass b = null; /*another comment*/
8   
9       private com.puppycrawl.tools.checkstyle.checks.coding.illegaltype.InputIllegalTypeMemberModifiers.AbstractClass c = null; //WARNING
10      private com.puppycrawl.tools.checkstyle.checks.coding.illegaltype.InputIllegalTypeMemberModifiers.NotAnAbstractClass d = null;
11  
12      private abstract class AbstractClass {/*one more comment*/}
13  
14      private class NotAnAbstractClass {}
15  
16      private java.util.TreeSet<Object> table1() { return null; } //WARNING
17      private TreeSet<Object> table2() { return null; } //WARNING
18      static class SomeStaticClass {
19          
20      }
21      
22      //WARNING if memberModifiers is set and contains TokenTypes.LITERAL_PROTECTED
23      protected com.puppycrawl.tools.checkstyle.checks.coding.illegaltype.InputIllegalTypeMemberModifiers.AbstractClass c1 = null;
24      //NO WARNING if memberModifiers is set and does not contain TokenTypes.LITERAL_PUBLIC
25      public final static java.util.TreeSet<Object> table3() { return null; }
26      
27      java.util.TreeSet<Object> table4() { java.util.TreeSet<Object> treeSet = null; return null; }
28      
29      private class Some {
30          java.util.TreeSet<Object> treeSet = null;
31      }
32      //WARNING if memberModifiers is set and contains TokenTypes.LITERAL_PROTECTED
33      protected AbstractClass a1 = null;
34      public AbstractClass a2 = null;
35  }