= Javadoc Guidelines = == General Rules == * All public and protected methods must have full documentation * Trivial ''getters'' and ''setters'' are exempted from this rule. Doing anything but returning or changing a variable in a getter or setter should be documented. * Private methods with non-obvious implementations should have enough documentation to allow other developers to debug them == Sun documentation == http://java.sun.com/j2se/javadoc/writingdoccomments/ == Guidelines == === package.html === Use the following template for writing {{{package.html}}} files. Generally write a {{{package.html}}} for any non-trivial package. {{{
Provides tools to build and digest Pies.
FooBar
Blah di blah...
}}} tags to write code snippets. It is generally advised to use the xml tag variant since it avoids problems with {{{{}}} and {{{} }}}in the code samples. It can be useful to use the {{{@code}}} variant for very short inlined code samples.
=== Formatting ===
Please use {{{This class implements a {@link Boat}. It is designed for high speed and good maneuverability. * It is not designed for long term stability and you might fare better with a {@link Ferry} if * speed is not of prime essence.
* *It is advised to instantiate a Boat via a {@link BoatFactory} for maximum modularity. * For example like:
* *
* BoatFactory fact = new BoatFactory(HoverCraft.class);
* Boat boat = fact.newBoat();
*
*
* @seealso Ferry
* @seealso Canoe
* @see BoatFactory
* @author John Doe
*/
public class HoverCraft {...
}}}