JAutodoc is a very useful eclipse plugin which helps in generating javadoc style comments very easily. Apart from adding the template for javadoc style comments for the class/method & attributes it is smart enough to add the description also based on the signatures. This can cover a substantial part of description creation effort for the methods like the setters/getters etc which do not need much human skills to generate the descriptions.








|
package VSpring2.service; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class PriceIncrease { /** Logger for this class and subclasses */ protected final Log logger = LogFactory.getLog(getClass()); private int percentage; public void setPercentage(int i) { percentage = i; logger.info("Percentage set to " + i); } public int getPercentage() { return percentage; } } |
|
/* * **************************************************** * * SPRING REFERENCE APPLICATION * * * Release 1.00 * * * Technology Solution Group - MFG BU * * **************************************************** */ package VSpring2.service; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * The Class PriceIncrease. */ public class PriceIncrease { /** Logger for this class and subclasses */ protected final Log logger = LogFactory.getLog(getClass()); /** The percentage. */ private int percentage; /** * Sets the percentage. * * @param i the new percentage */ public void setPercentage(int i) { percentage = i; logger.info("Percentage set to " + i); } /** * Gets the percentage. * * @return the percentage */ public int getPercentage() { return percentage; } } |
|
Recommend the tutorial |
Ask Questions? Discuss: Reduce Java Code commenting effort using JAutodoc (eclipse plugin) View All Comments
Post your Comment