This page describes the standards used for Apache ServiceMixcode ServiceMix code (java, xml, whatever). Code is read by a human being more often than it is written by a human being, make the code a pleasure to read. If you're using Eclipse, configuration files for your IDE can be found at http://svn.apache.org/repos/asf/servicemix/smx3/trunk/etc/eclipse/
Indentation
Java
Lets follow Sun's coding standard rules which are pretty common in Java.
http://java.sun.com/docs/codeconv/
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
- 4 characters indentation
- No tabs please!
...
- Eclipse users can
- use
Source -> Organise Imports
to organize imports - use
Source -> Format
to format code (please use default Eclipse formatting conventions, which are as above) - IntelliJ users can
- use
Tools -> Organise Imports
to organize imports - use
Tools -> Reformat code
to format code (uses the code style setting in IDE options)
The eclipse formater settings are available here.
JavaDoc Tags
@version Should be: @version $Revision$ $Date$
...