Jindent - Java Source Code Formatter http://www.jindent.com
 



title
5.6.2.7 White Spaces

White spaces appear on a lot of different places in source codes. They can appear before, after and around (padding) source code elements.


title
5.6.2.7.1 Braces

Padding braces of initializers

Padding braces of initializers

Controls whether white spaces are inserted after left and before right braces or not.


Use padding:

enum·Nummer·{·EINS,·ZWEI,·DREI,·VIER·}  
                                        
int[]·intArray={·1,·2,·3·}              


Do not use padding:

enum·Nummer·{EINS,·ZWEI,·DREI,·VIER}    
                                        
int[]·intArray={1,·2,·3}                



No padding of empty braces in initializers

No padding of empty braces in initializers

Controls whether white spaces are inserted between empty braces or not.


We assume the settings "Padding braces of initializers" is in use and padding of empty braces is allowed:

int·[]·intArray·=·{·};                  


The same example as above, but now we do not allow padding of empty braces:

int·[]·intArray·=·{};