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 InputGenericWhitespace implements Comparable<InputGenericWhitespace>, Serializable {
12 <T> InputGenericWhitespace(List<T> things, int i) {}
13
14 public <T> InputGenericWhitespace(List<T> things) {}
15
16 public static <T> Callable<T> callable(Runnable task, T result) {
17 return null;
18 }
19
20
21
22
23 public static<T>Callable<T> callable2(Runnable task, T result) {
24 Map<Class<?>, Integer> x = new HashMap<Class<?>, Integer>();
25 for (final Map.Entry<Class<?>, Integer> entry : x.entrySet()) {
26 entry.getValue();
27 }
28 Class<?>[] parameterClasses = new Class<?>[0];
29 return null;
30 }
31
32 void meth() {
33 List<Integer> x = new ArrayList<Integer>();
34 List<List<Integer>> y = new ArrayList<List<Integer>>();
35 List < Integer > a = new ArrayList < Integer >();
36
37
38
39
40
41
42
43 List < List < Integer > > b = new ArrayList < List < Integer > >();
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 }
60
61 public int compareTo(InputGenericWhitespace obj) {
62 return 0;
63 }
64
65 public int getConstructor(Class<?>... parameterTypes) {
66 Collections.<Object>emptySet();
67 Collections. <Object> emptySet();
68
69
70
71 return 666;
72 }
73
74 public interface IntEnum {}
75
76 public static class IntEnumValueType<E extends Enum<E> & IntEnum> {}
77
78 public static class IntEnumValueType2<E extends Enum<E>& IntEnum> {
79
80
81
82 }
83
84 public static class IntEnumValueType3<E extends Enum<E> & IntEnum> {
85
86 }
87 }