blob: ff5a3389485345c920ab044b9d34354fd26ad9dc [file] [log] [blame]
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[][]{};
}
}