diff --git a/docs/anttask.html b/docs/anttask.html
index a1d211610..2871d064f 100644
--- a/docs/anttask.html
+++ b/docs/anttask.html
@@ -52,7 +52,12 @@ This task is included in the checkstyle distribution.
| lcurlyOther |
- Specifies the policy of where to put the left brace '{' for other declarations. What keywords are covered is defined here. The legal values are defined here. Defaults to "eol". |
+ Specifies the policy of where to put the left brace '{' for other declarations. The keywords covered is defined here. The legal values are defined here. Defaults to "eol". |
+ No |
+
+
+ | rcurly |
+ Specifies the policy of where to put the right brace '}'. The keywords covered is defined here. The legal values are defined here. Defaults to "same". |
No |
diff --git a/docs/cmdline.html b/docs/cmdline.html
index 0f0d50180..550aa721b 100644
--- a/docs/cmdline.html
+++ b/docs/cmdline.html
@@ -56,8 +56,12 @@ This command line tool is included in the checkstyle distribution.
| checkstyle.lcurly.other |
- Specifies the policy of where to put the left brace '{' for other declarations. What keywords are covered is defined here. The legal values are defined here. Defaults to "eol". |
-
+ Specifies the policy of where to put the left brace '{' for other declarations. The keywords covered is defined here. The legal values are defined here. Defaults to "eol". |
+
+
+ | checkstyle.rcurly |
+ Specifies the policy of where to put the right brace '}'. The keywords covered is defined here. The legal values are defined here. Defaults to "same". |
+
| checkstyle.allow.protected |
Indicates whether to allow protected data. Defaults to "no". |
diff --git a/docs/engine.html b/docs/engine.html
index 19213189a..9ba962dd6 100644
--- a/docs/engine.html
+++ b/docs/engine.html
@@ -105,6 +105,15 @@
ignore |
Ignore the placement of the brace. |
+
+ | eol |
+ The brace must always be on the end of the line. For example:
+
+ if (condition) {
+ ...
+
+ This is the default value.
+ |
| nl |
The brace must always be on a new line. For example:
@@ -115,15 +124,6 @@
|
-
- | eol |
- The brace must always be on the end of the line. For example:
-
- if (condition) {
- ...
-
- This is the default value.
- |
| nlow |
If the brace will fit on the first line of the statement, taking into account making line length, then apply eol rule. Otherwise apply the nl rule. nlow is a mnemonic for "new line on wrap". For the example above Checkstyle will enforce:
@@ -142,7 +142,42 @@
|
-The check can be tailored for types, methods and others. What is included in others are the keywords switch, while, for, do, if, else, synchronized, try, catch, finally, static.
+The check can be tailored for types, methods and others. What is included in others are the keywords switch, while, for, do, if, else, synchronized, try, catch, finally and static.
+
+There is also a check for the correct placement of right curly braces '}' with the keywords else, catch and finally. The check can be configured with the following options:
+
+
+
+
+ | ignore |
+ Ignore the placement of the brace. |
+
+
+ | same |
+ The brace must be on the same line as the next statement. For example:
+
+ try {
+ ...
+ } finally {
+
+ This is the default value.
+ |
+
+
+ | alone |
+ The brace must be alone on the line. For example:
+
+ try {
+ ...
+ }
+ finally {
+
+ |
+
+
Checks for lines that are longer than a specified length. The default is "80". This can be turned off for import statements.