1
2
3
4
5
6
7
8
9
10 package com.puppycrawl.tools.checkstyle.checks.blocks.rightcurly;
11
12 public class InputRightCurlyWithEmojiAloneOrSingleLine {
13 private String a;
14 private static String b;
15 { a = "π§π"; }
16 static { b = "π§π€©"; }
17
18
19 void method2(java.util.HashSet<String> set) {
20 java.util.Map<String, String> map1 = new java.util.LinkedHashMap<String, String>() {{
21 put("Hello", "π§π€©");
22 put("π§π€©", "second" + "π§π€©");
23 put("polysaπ§π€©gene", "lubricants");
24 put("alpha", "beticalπ");}
25 };
26
27 }
28
29 String method4(String a) {
30 if (a.equals("π")) ; return "ππ€©"; }
31
32 void method5(String a, int b) {
33 while ("ππ»π§".length() > 5) { ; }
34
35 if ("ππ»ππΌ".isEmpty()) { ; }
36
37 do {b--;} while (a.equals("π€©"));
38
39 for (int i = 1; i < 10; i++) {
40 if("πππ".charAt(i) == 's') i++; }
41
42 java.util.List<String> list = new java.util.ArrayList<>();
43 list.stream()
44 .filter(e -> {return !e.isEmpty() && !"π€©π".equals(e);} )
45 .collect(java.util.stream.Collectors.toList());
46 }
47
48 public void foo5() {
49
50 do {
51 String a = new String("π€£π€£");}
52 while (false);
53 if(true) {
54 String a = ("π€£π€£");} else{
55
56 return;
57 }
58 }
59 }