Package com.puppycrawl.tools.checkstyle.checks.blocks
Contains the Block checks that are
bundled with the main distribution.
-
Class Summary Class Description AvoidNestedBlocksCheck Finds nested blocks.EmptyBlockCheck Checks for empty blocks.EmptyCatchBlockCheck Checks for empty catch blocks.LeftCurlyCheck Checks the placement of left curly braces on types, methods and other blocks:LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,STATIC_INIT,LAMBDA.NeedBracesCheck Checks for braces around code blocks.RightCurlyCheck Checks the placement of right curly braces.RightCurlyCheck.Details Structure that contains all details for validation. -
Enum Summary Enum Description BlockOption Represents the policy for checking block statements.LeftCurlyOption Represents the options for placing the left curly brace'{'.RightCurlyOption Represents the options for placing the right curly brace''}.