View Javadoc
1   package com.google.checkstyle.test.chapter4formatting.rule462horizontalwhitespace;
2   
3   import java.io.Serializable;
4   import java.util.ArrayList;
5   import java.util.Collections;
6   import java.util.HashMap;
7   import java.util.List;
8   import java.util.Map;
9   import java.util.concurrent.Callable;
10  
11  class InputFormattedGenericWhitespace
12      implements Comparable<InputFormattedGenericWhitespace>, Serializable {
13    <T> InputFormattedGenericWhitespace(List<T> things, int i) {}
14  
15    public <T> InputFormattedGenericWhitespace(List<T> things) {}
16  
17    public static <T> Callable<T> callable(Runnable task, T result) {
18      return null;
19    }
20  
21    public static <T> Callable<T> callable2(Runnable task, T result) {
22      Map<Class<?>, Integer> x = new HashMap<Class<?>, Integer>();
23      for (final Map.Entry<Class<?>, Integer> entry : x.entrySet()) {
24        entry.getValue();
25      }
26      Class<?>[] parameterClasses = new Class<?>[0];
27      return null;
28    }
29  
30    void meth() {
31      List<Integer> x = new ArrayList<Integer>();
32      List<List<Integer>> y = new ArrayList<List<Integer>>();
33      List<Integer> a = new ArrayList<Integer>();
34      List<List<Integer>> b = new ArrayList<List<Integer>>();
35    }
36  
37    public int compareTo(InputFormattedGenericWhitespace obj) {
38      return 0;
39    }
40  
41    public int getConstructor(Class<?>... parameterTypes) {
42      Collections.<Object>emptySet();
43      Collections.<Object>emptySet();
44      return 666;
45    }
46  
47    public interface IntEnum {}
48  
49    public static class IntEnumValueType<E extends Enum<E> & IntEnum> {}
50  
51    public static class IntEnumValueType2<E extends Enum<E> & IntEnum> {}
52  
53    public static class IntEnumValueType3<E extends Enum<E> & IntEnum> {}
54  }