Skip to main contentdfsdf

Alan Lee's List: javadoc api

    • Four spaces
    • Tabs must be set exactly every 8 spaces

    6 more annotations...

    • grouped by functionality rather than by scope or accessibility
    • A single-line comment should be preceded by a blank line.
    • shifted far enough to separate them from the statements

    3 more annotations...

    • One declaration per line
    • initialize local variables where they're declared

    6 more annotations...

    • opening brace should be at the end of the line that begins the compound statemen
    • if statements always use braces {}

    3 more annotations...

    • Two blank lines
    • One blank line

    4 more annotations...

    • nouns
    • Use whole words-avoid acronyms

    1 more annotation...

    • Numerical constants (literals) should not be coded directly
    • Do not use embedded assignments

    3 more annotations...

    • The specification should describe (textually) the thread-safety guarantees provided by a given object. In the absence of explicit indication to the contrary, all objects are assumed to be "thread-safe"
    • The first sentence of each doc comment should be a summary sentence, containing a concise but complete description of the API item.

    28 more annotations...

    • assumptions
    • handling unchecked exceptions

    2 more annotations...

1 - 10 of 10
20 items/page
List Comments (0)