1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.blocks.rightcurly;
10
11 public class InputRightCurlyTestOptAloneBlocksWithSemi {
12
13 public void testMethod() {};
14
15 public void testMethod1() {
16 };
17
18 public class TestClass {};
19
20 public class TestClass1 {
21 };
22
23 public class TestClass2 {
24 public TestClass2() {};
25
26 public TestClass2(String someValue) {
27 };
28 }
29
30 public void testMethod11() {
31 }
32 ;
33
34 public @interface TestAnnnotation5 {
35 String someValue(); };
36
37 public @interface TestAnnotation6 {};
38
39 public @interface TestAnnotation7 {
40 String someValue();
41 };
42
43 public @interface TestAnnotation8 { String someValue();
44 };
45
46 public @interface TestAnnotation9 { String someValue(); };
47
48 enum TestEnum{};
49
50 enum TestEnum1{
51 SOME_VALUE;};
52
53 enum TestEnum2 { SOME_VALUE; };
54
55 enum TestEnum3{
56 SOME_VALUE;
57 };
58
59 enum TestEnum4{ SOME_VALUE;
60 };
61
62 interface Interface1
63 {
64 int i = 1;
65 public void meth1(); };
66
67 interface Interface3 {
68 void display();
69 interface Interface4 {
70 void myMethod();
71 };};
72
73 interface InterfaceEndingWithSemiColon2 {
74 public void fooEmpty();
75 };
76 }