title: Are there any widespread, modern Java coding conventions?
body: <p>Sun's "<a href="http://java.sun.com/docs/codeconv/" rel="noreferrer">Code Conventions for the Java Programming Language</a>" was last updated April 1999.  Ten years later a lot has changed in the language, as well as general usage patterns.  Are there more up to date, widely adopted standards?</p>
  
  <p>Most guidelines omit specifying file encoding and line endings.  Sun recommends mixed tabs and spaces.  The Eclipse IDE defaults to Eclipse's standard, which is tabs only.  The <a href="http://maven.apache.org/developers/conventions/code.html" rel="noreferrer">Maven style guide</a> is spaces only.  Many style guides, such as <a href="http://docs.jboss.org/process-guide/en/html/coding.html" rel="noreferrer">JBoss</a>, follow Sun's guidelines, but prefer K&amp;R braces instead of <a href="http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS" rel="noreferrer">OTBS</a>.  Each Apache project has it's own style guide, with slight differences between each one.</p>