Code cleanliness, specification, readable, annotation is one of the keys.
1. entire class file comments
annotation structure :
/*
* @ (#) { class name }.java { creation time }
*
* {A person or a company has full copyright }
* {The user must be licensed }
*/
2. Specific class function notes
annotation structure :
/**
* class <code>{}</code>{ such function description }
*
* @author { author }
* @version { version , common time instead of
* @see Java.lang.Class
* @since jdk{jdk version
*/
public class Object {}
3. class variable comments
Annotation structure :
/** { This value is used to store / record what }*/
Private String str;
4. class method Comments
Annotation structure :
/**
* { function / Action description of Method }
*
* @param { introduction of parameter name } { introduction of argument description }
* @return { return parameter name} { return argument description }
* @exception { indicates What exception will occur in a situation}
*/
Public String substring (int beginindex) {
return substring (beginindex, count);
}
5. code block comments in class methods
Annotation structure :
/*
* { function description }
*
* { specific implementation action }
*/
Java Annotation Method--the current