com.puppycrawl.tools.checkstyle.checks.blocks

Class RightCurlyOption

public final class RightCurlyOption extends AbstractOption

Represents the options for placing the right curly brace '}'.

Version: 1

Author: Oliver Burn

Field Summary
static RightCurlyOptionALONE
Represents the policy that the brace must be alone on the line.
static RightCurlyOptionSAME
Represents the policy that the brace must be on the same line as the next statement.
Method Summary
protected MapgetStrToOpt()
{@inheritDoc}

Field Detail

ALONE

public static final RightCurlyOption ALONE
Represents the policy that the brace must be alone on the line. For example:
 try {
     ...
 }
 finally {
 

SAME

public static final RightCurlyOption SAME
Represents the policy that the brace must be on the same line as the next statement. For example:
 try {
     ...
 } finally {
 

Method Detail

getStrToOpt

protected Map getStrToOpt()
{@inheritDoc}