|
http://www.jindent.com |
Previous: Lambda
|
Next: Do-While/While/For
|
| Brace style for blocks and initializers |

| Left brace { new line |
|
int x[] = { ... |
|
int x[] = { ... |
| Right brace } new line |
| Indent left brace { |
|
int·x[]·= ····{ ····... |
|
int·x[]·= { ... |
|
int·x[]·=·{ ... |
|
int·x[]·={ ... |
| Indent right brace } |
|
int·x[]·= ····{ ····... ····} |
|
int·x[]·= { ····... } |
| Indent after right brace } |
| Cuddle braces of empty blocks {} |
|
int x[] = {} |
|
int x[] = { } |
| Indent cuddled braces {} |
|
int·x[]={} |
|
int·x[]=·{} |
| Prohibit blank lines after left brace { |
|
int x[] = { ¶ // comment with a preceding blank line 1, 2, 3, 4, 5, ¶ // another comment ... } |
|
int x[] = { // comment with a preceding blank line 1, 2, 3, 4, 5, ¶ // another comment ... } |
|
See also: | Jindent - Settings - Formatter - Java / SQLJ - Blank Lines - Comments , Jindent - Settings - Formatter - Java / SQLJ - Blank Lines |
| If number of lines in body is at least ... then insert blank line after { |
| If number of lines in body is at least ... then insert blank line before } |
| Do not insert blank line before single left brace |
|
See also: | Jindent - Settings - Formatter - Java / SQLJ - Braces Style - Presets |