View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="ClassDataAbstractionCoupling">
5         <property name="excludeClassesRegexps" value=".*Reader$"/>
6       </module>
7     </module>
8   </module>
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling.ignore;
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.deeper.Example4;
17  import com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling.ignore.deeper.Example5;
18  
19  import java.io.BufferedReader;
20  import java.io.PipedReader;
21  import java.math.BigInteger;
22  import java.util.HashMap;
23  import java.util.HashSet;
24  import java.util.Map;
25  import java.util.Set;
26  import java.util.concurrent.atomic.AtomicInteger;
27  
28  // xdoc section -- start
29  public class Example7 {
30    Set set = new HashSet(); // Ignored by default
31    Map map = new HashMap(); // Ignored by default
32  
33    AtomicInteger atomicInteger = new AtomicInteger(); // Counted 1
34    BigInteger bigInteger = new BigInteger("0");
35    Example1 example1 = new Example1();
36    Example2 example2 = new Example2();
37    Example3 example3 = new Example3();
38    Example4 example4 = new Example4();
39    Example5 example5 = new Example5(); // Counted 7
40  
41    // Ignored using module excludeClassesRegexps property
42    BufferedReader bufferedReader = new BufferedReader(new PipedReader());
43  }
44  // xdoc section -- end