View Javadoc
1   /*
2   GenericWhitespace
3   
4   
5   */
6   
7   package com.puppycrawl.tools.checkstyle.checks.whitespace.genericwhitespace;
8   
9   import java.util.Collections;
10  import java.util.List;
11  import java.util.function.Supplier;
12  
13  public class InputGenericWhitespaceWithEmoji {
14  
15      /* πŸ‘‡πŸ»dsad */public static class SomeClass { /* πŸ˜‚ */
16  
17          public static class Nested<V> {
18  
19              private Nested() {
20  
21              }
22          }
23      }
24      public <V> void methodName(V value) {
25  
26          /* πŸ‘‰πŸ»  πŸ˜† */ Supplier<?> t = InputGenericWhitespaceMethodRef1.Nested2<V>::new;
27  
28          // πŸŽ„ da
29          List<List<String>[]>
30             /*πŸ˜‚ πŸ€›πŸ» asd*/     listOfListOFArrays;
31  
32      }
33  
34      interface NumberEnum<T
35   > { /*innerπŸ˜† enum*/} // violation ''>' is preceded with whitespace'
36  
37      public int getConstructor(Class<?>... parameterTypes)
38      {
39          Collections.<Object>emptySet();
40          Collections. /*da sdπŸ˜†sd*/ <Object> emptySet(); // 2 violations
41          return 666;
42      }
43      Object ok2 = new <String>Outer.Inner();
44      Object notOkStart = new<String>Outer.Inner(); // violation ''<' is not preceded with whitespace'
45      /* πŸ˜†asd*/ public static class IntEnumValueType3 <E extends Enum<E>> {
46          // violation above ''<' is preceded with whitespace'
47      }
48  
49  }