View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.metrics.classdataabstractioncoupling;
2   
3   import javax.naming.NamingException;
4   import java.util.*;
5   
6   public class InputClassDataAbstractionCoupling {
7       private class InnerClass { //singleline comment
8           public List _list = new ArrayList();
9       }
10  
11      private class AnotherInnerClass {
12          public String _string = "";
13      }
14  
15      public Set _set = /*block comment*/new HashSet();
16      public Map _map = new HashMap();
17      public String _string = "";
18      public int[] _intArray = new int[0];
19      public InnerClass _innerClass = new InnerClass();
20      public AnotherInnerClass _anotherInnerClass = new AnotherInnerClass();
21  
22      public void foo() throws NamingException {
23      }
24  
25  }
26  
27  enum InnerEnum {
28      VALUE1;
29  
30      private InnerEnum()
31      {
32          map2 = new HashMap();
33      }
34      private Set map1 = new HashSet();
35      private Map map2;
36  }
37  
38  class InputThrows {
39  
40      public void get() throws NamingException, IllegalArgumentException {
41          new java.lang.ref.ReferenceQueue<Integer>();
42      }
43  }