View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="ClassDataAbstractionCoupling">
5         <property name="excludedClasses" value="HashMap, HashSet, Example1"/>
6       </module>
7     </module>
8   </module>
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling.ignore.deeper;
12  
13  import com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling.Example1;
14  import com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling.Example2;
15  import com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling.Example3;
16  import com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling.ignore.Example7;
17  
18  import java.math.BigInteger;
19  import java.util.HashMap;
20  import java.util.HashSet;
21  import java.util.Map;
22  import java.util.Set;
23  import java.util.concurrent.atomic.AtomicInteger;
24  
25  // xdoc section -- start
26  public class Example5 {
27    Set set = new HashSet(); // Ignored 1
28    Map map = new HashMap(); // Ignored 2
29    Example1 example1 = new Example1(); // Ignore 3
30  
31    AtomicInteger atomicInteger = new AtomicInteger(); // Counted 1
32    BigInteger bigInteger = new BigInteger("0");
33    Example2 example2 = new Example2();
34    Example3 example3 = new Example3();
35    Example4 example4 = new Example4();
36    Example6 example6 = new Example6();
37    Example7 example7 = new Example7(); // Counted 7
38  }
39  // xdoc section -- end