com.puppycrawl.tools.checkstyle.checks.blocks
Class BlockOption
- Serializable
public final class BlockOption
Represents the policy for checking block statements.
- Rick Giles
EmptyBlockCheck
static BlockOption | STMT - Represents the policy that there is a statement in the block.
|
static BlockOption | TEXT - Represents the policy that there is some text in the block.
|
STMT
public static final BlockOption STMT
Represents the policy that there is a statement in the block. For
example:
finally {
lock.release();
}
TEXT
public static final BlockOption TEXT
Represents the policy that there is some text in the block. For example:
catch (Exception ex) {
// This is a bad coding practice
}