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