com.puppycrawl.tools.checkstyle.checks.blocks
Class RightCurlyCheck
- Configurable, Contextualizable
public class RightCurlyCheck
Checks the placement of right curly braces.
The policy to verify is specified using the
RightCurlyOption class
and defaults to
RightCurlyOption.SAME.
By default the check will check the following tokens:
LITERAL_CATCH,
LITERAL_ELSE,
LITERAL_TRY.
An example of how to configure the check is:
<module name="RightCurly"/>
An example of how to configure the check with policy
RightCurlyOption.ALONE for
else tokens is:
<module name="RightCurly">
<property name="tokens" value="LITERAL_ELSE"/>
<property name="option" value="alone"/>
</module>
Version:
- Oliver Burn
- lkuehne
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity |
RightCurlyCheck
public RightCurlyCheck()
Sets the right curly option to same.
getDefaultTokens
public int[] getDefaultTokens()
- getDefaultTokens in interface Check
Check