View Javadoc
1   /*
2   RightCurly
3   option = (default)same
4   tokens = (default)LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.blocks.rightcurly;
10  
11  class InputRightCurlyTestWithoutFinally
12  {
13      void foo() throws InterruptedException
14      {
15  
16          try
17          {
18  
19          } // violation ''}' at col.* 9 should be on the same line as .*/catch'
20          catch (Exception e)
21          {
22              return;
23          }
24  
25          }
26  
27      }
28  
29  class UniqEmptyClassTestWithoutFinally {private int a;}