Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Four space indents for Java, and 2-space indents for XML. NO TABS
  2. K&R style braces

    Code Block
    if (code) {
      // code
    } else {
      // code
    }
    
  3. Do not use wildcard imports
  4. Write Javadocs for public methods and classes. Keep it short and to the point
  5. Avoid public instance variables; use accessors
  6. Use public methods sparingly; implementation details are not public
  7. Maximum length of lines is 80 characters.
  8. Create Javadocs for types of at least the following descriptivity

    Code Block
    /**
     * @author Joe Developer
     * @date MMM DD, YYYY
     */
    public class MyClass
  9. Include a licence header in the source code.

    Code Block
    languagejava
    /** 
     * The contents of this file are subject to the license and copyright terms
     * detailed in the license directory at the root of the source tree (also
     * available online at http://fedora-commons.org/license/).
     */

    Include the following license statement as a header for every file (using appropriate commenting syntax):

    Code Block
    languagejava
    /** 
     * The contents of this file are subject to the license and copyright terms
     * detailed in the license directory at the root of the source tree (also
     * available online at http://fedora-commons.org/license/).
     */

IDE Setups

IDE settings can be found in fcrepo4/etc in the project source.

...