1 /* 2 RightCurly 3 option = ALONE 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 public class InputRightCurlyTestSinglelineIfBlocks { 12 void foo1() { 13 if (true) { int a = 5; } // violation ''}' at column 32 should be alone on a line' 14 15 if (true) { if (false) { int b = 6; } } // 2 violations 16 } 17 }