1
2
3
4
5
6
7
8
9
10
11
12
13
14 package com.puppycrawl.tools.checkstyle.checks.blocks.leftcurly;
15
16 import java.io.IOException;
17 import java.util.HashSet;
18 import java.util.Set;
19 import java.util.regex.Pattern;
20
21 public class InputLeftCurlyCommentBeforeLeftCurly {
22
23 void method1 ()
24 { }
25
26 InputLeftCurlyCommentBeforeLeftCurly()
27 {
28 System.out.println("Hello CheckStyle");
29 }
30
31 InputLeftCurlyCommentBeforeLeftCurly(String name)
32 {
33 System.out.println("I am int" + name);
34 }
35
36 private void some() throws Exception {
37 try {
38 throw new IOException();
39 } catch (IOException | NullPointerException | ArithmeticException ex)
40 {
41 }
42 }
43
44 public void multipleBlock()
45 {
46 }
47
48 private class Node {
49 int value;
50 Node next;
51
52 public
53 Node(int value) {
54 this.value=value;
55 }
56
57 public Node(int value, Node next)
58 {
59 this.value = value;
60 this.next = next;
61 }
62 }
63
64 public void array() {
65 Integer[] array = null;
66 for (Integer i: array) {
67
68 }
69 }
70 }
71
72 class checks implements check
73 {
74
75 public static Set<String> processJavadocTag() {
76 final Set<String> references = new HashSet<>();
77 final String identifier = references.toString();
78 for (Pattern pattern : new Pattern[]
79 {Pattern.compile(".*"), Pattern.compile(".*")}) {
80
81 }
82 return references;
83 }
84
85 class C {
86 void method1 ()
87 { }
88
89 void method2 ()
90 { }
91 }
92
93 private void method() {
94 String b = "🧐🧐🧐ccvb";
95 if (b.equals("🧐🧐")) {
96
97 }
98 if (b.equals("s🧐d🧐a")) {
99 }
100
101 while (b == "😂🥳") { }
102 }
103 }
104
105 interface check {
106 }
107
108 class InputAstTreeStringPrinterFullOfBlockComments {
109 public static String main(String[] args) {
110 String line = "/*I'm NOT comment*/blabla"/*35*/;/*36*/
111 String.CASE_INSENSITIVE_ORDER.equals(line);
112 Integer[] array = null;
113 for (Integer i: array) {
114 }
115 return line;
116 }
117 }