View Javadoc
1   /*
2   RightCurly
3   option = (default)SAME
4   tokens = LITERAL_DO, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT, CLASS_DEF, \
5            METHOD_DEF, CTOR_DEF, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF
6   
7   
8   */
9   
10  package com.puppycrawl.tools.checkstyle.checks.blocks.rightcurly;
11  
12  public class InputRightCurlyTestSame {
13      static {
14      }
15  
16      public InputRightCurlyTestSame() {
17          Thread t = new Thread(new Runnable() {
18              {
19              }
20  
21              @Override
22              public void run() {
23              }
24          });
25      }
26  
27      public void doLoop() {
28          do {
29          } while (true);
30      }
31  
32      public void whileLoop() {
33          while (true) {
34          }
35      }
36  
37      public void forLoop() {
38          for (; ; ) {
39          }
40      }
41  
42      public void function() {
43      }
44  
45      ;
46  
47      public class TestClass {
48      }
49  
50      ;
51  
52      public void testMethod() {
53      }
54  
55      ;
56  
57      public @interface TestAnnotation {
58      }
59  
60      public @interface TestAnnotation1 {
61          String someValue();
62      }
63  
64      public @interface TestAnnotation3 {
65          String someValue();
66      }
67  
68      public @interface TestAnnotation4 {
69          String someValue();
70      }
71  }