View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.blocks.rightcurly;
2   
3   public class InputRightCurlySingelineIfBlocks {
4       void foo1() {
5           if (true) { int a = 5; } // violation
6   
7           if (true) { if (false) { int b = 6; } } // violation
8       }
9   }