package com.puppycrawl.tools.checkstyle.whitespace; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Callable; import java.util.Collections; class InputGenericWhitespaceCheck implements Comparable, Serializable { void meth() { List x = new ArrayList(); List> y = new ArrayList>(); List < Integer > a = new ArrayList < Integer > (); List < List < Integer > > b = new ArrayList < List < Integer > > (); } //always 0 public int compareTo(InputGenericWhitespaceCheck aObject) { return 0; } public static Callable callable(Runnable task, T result) { return null; } public staticCallable callable2(Runnable task, T result) { Map, Integer> x = new HashMap, Integer>(); for (final Map.Entry, Integer> entry : x.entrySet()) { entry.getValue(); } Class[] parameterClasses = new Class[0]; return null; } public int getConstructor(Class... parameterTypes) { Collections.emptySet(); Collections. emptySet(); return 666; } InputGenericWhitespaceCheck(List things, int i) { } public InputGenericWhitespaceCheck(List things) { } public interface IntEnum { /*inner enum*/ } public static class IntEnumValueType & IntEnum> { } public static class IntEnumValueType2& IntEnum> { } public static class IntEnumValueType3 & IntEnum> { } public static class IntEnumValueType4> & IntEnum> { } public void beforeAndAfter() { List < Integer> x = new ArrayList(); List y = new ArrayList(); Map, Integer> a = new HashMap, Integer>(); Map, Integer> b = (Map, Integer>) a; } }