View Javadoc
1   /*
2   ClassFanOutComplexity
3   max = 0
4   excludedClasses = (default)ArrayIndexOutOfBoundsException, ArrayList, Boolean, Byte, \
5                     Character, Class, Collection, Deprecated, Deque, Double, DoubleStream, \
6                     EnumSet, Exception, Float, FunctionalInterface, HashMap, HashSet, \
7                     IllegalArgumentException, IllegalStateException, IndexOutOfBoundsException, \
8                     IntStream, Integer, LinkedHashMap, LinkedHashSet, LinkedList, List, Long, \
9                     LongStream, Map, NullPointerException, Object, Optional, OptionalDouble, \
10                    OptionalInt, OptionalLong, Override, Queue, RuntimeException, SafeVarargs, \
11                    SecurityException, Set, Short, SortedMap, SortedSet, Stream, String, \
12                    StringBuffer, StringBuilder, SuppressWarnings, Throwable, TreeMap, TreeSet, \
13                    UnsupportedOperationException, Void, boolean, byte, char, double, float, \
14                    int, long, short, var, void
15  excludeClassesRegexps = (default)^$
16  excludedPackages = com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity.inputs.c, \
17                     com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity.inputs.b
18  
19  
20  */
21  
22  package com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity;
23  
24  import com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity.inputs.a.aa.AAClass;
25  import com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity.inputs.a.ab.ABClass;
26  import com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity.inputs.b.BClass;
27  import com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity.inputs.c.CClass;
28  
29  public class InputClassFanOutComplexityExcludedPackagesDirectPackages { // violation
30      public AAClass aa;
31      public ABClass ab;
32  
33      class Inner { // total: ok
34          public BClass b;
35          public CClass c;
36      }
37  }
38  
39  class InputClassFanOutComplexityExcludedPackagesDirectPackagesHidden { // total: ok
40      public CClass c;
41  }