Hi Thomas,
I think you don't use the javadoc correctly.
You comment must be followed by the @param tags:
/**
* My comments: This function sets ...
*
* @param i Percentage
*/
See also http://java.sun.com/j2se/javadoc/writingdoccomments/
Regards
Marco
thomas2004 wrote:
A class looks as follow:
/**
*
* @author Thomas
*
*/
public class PriceIncrease {
/** Logger for this class and subclasses */
protected final Log logger = LogFactory.getLog(getClass());
private int percentage;
/**
*
* @param i Percentage
* My comments: This function sets ...
*/
public void setPercentage(int i) {
percentage = i;
logger.info("Percentage set to " + i);
}
...
}
After I used maven site, the JavaDocs are generated. But as I open this
class in javadocs, I see the followings:
setPercentage
public void setPercentage(int i)Parameters:
i - Percentage
I can't see the text of MyComments, why?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]