void () { getJavaSettings().SPACES_WITHIN_ANGLE_BRACKETS = true; String beforeMethod = "static < T > void fromArray( T [ ] a , Collection< T > c) {\n}"; doClassTest(beforeMethod, "static < T > void fromArray(T[] a, Collection< T > c) {\n}"); String beforeLocal = "Map< String, String > map = new HashMap< String, String >();"; doMethodTest(beforeLocal, "Map< String, String > map = new HashMap< String, String >();"); String beforeClass = "class A < U > {\n}"; doTextTest(beforeClass, "class A< U > {\n}"); getJavaSettings().SPACES_WITHIN_ANGLE_BRACKETS = false; doMethodTest(beforeLocal, "Map<String, String> map = new HashMap<String, String>();"); doClassTest(beforeMethod, "static <T> void fromArray(T[] a, Collection<T> c) {\n}"); doTextTest(beforeClass, "class A<U> {\n}"); }