From ea29e7e8e26ab64cb7eec06facd9b2da83ec39d2 Mon Sep 17 00:00:00 2001 From: "Taher A. Alkhateeb" Date: Wed, 14 Dec 2016 09:22:32 +0000 Subject: [PATCH] Improved: refactor javadocs in OFBiz to be standards compliant (OFBIZ-9144) This is the first commit to the above mentioned issue which fixes many javadoc errors dispersed through the different components. The fixes are not necessarily improvements to the javadocs but rather making them valid javadocs to prevent reporting errors from gradle git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1774154 13f79535-47bb-0310-9956-ffa450edef68 --- .../ofbiz/htmlreport/AbstractHtmlReport.java | 6 +--- .../htmlreport/AbstractReportThread.java | 28 ++++++++----------- .../ofbiz/htmlreport/InterfaceReport.java | 8 +++--- .../htmlreport/sample/SampleHtmlReport.java | 4 +-- 4 files changed, 19 insertions(+), 27 deletions(-) diff --git a/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractHtmlReport.java b/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractHtmlReport.java index 498bf4311..f5a7b5e04 100644 --- a/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractHtmlReport.java +++ b/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractHtmlReport.java @@ -65,12 +65,8 @@ public abstract class AbstractHtmlReport extends HtmlReport { } /** - * Prepare display an html report.

+ * Prepare display an html report. * - * @throws JspException if dialog actions fail - * @throws IOException - * @throws ServletException - * @throws TemplateException * @throws IOException */ public void prepareDisplayReport(HttpServletRequest request, HttpServletResponse response, String name, String dialogUri) throws IOException { diff --git a/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java b/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java index 31eb59774..2e86a40bf 100644 --- a/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java +++ b/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java @@ -49,9 +49,7 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe private Locale locale; /** - * Constructs a new report Thread with the given name.

- * - * @param name the name of the Thread + * Constructs a new report Thread with the given name. */ protected AbstractReportThread(HttpServletRequest request, HttpServletResponse response, String name) { @@ -76,7 +74,7 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Adds an error object to the list of errors that occured during the report.

+ * Adds an error object to the list of errors that occured during the report. * * @param obj the error object */ @@ -89,7 +87,7 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe /** * Returns the error exception in case there was an error during the execution of - * this Thread, null otherwise.

+ * this Thread, null otherwise. * * @return the error exception in case there was an error, null otherwise */ @@ -99,7 +97,7 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Returns a list of all errors that occured during the report.

+ * Returns a list of all errors that occured during the report. * * @return an error list that occured during the report */ @@ -113,14 +111,14 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Returns the part of the report that is ready for output.

+ * Returns the part of the report that is ready for output. * * @return the part of the report that is ready for output */ public abstract String getReportUpdate(); /** - * Returns the time this report has been running.

+ * Returns the time this report has been running. * * @return the time this report has been running */ @@ -134,7 +132,7 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Returns if the report generated an error output.

+ * Returns if the report generated an error output. * * @return true if the report generated an error, otherwise false */ @@ -148,11 +146,11 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Returns true if this thread is already "doomed" to be deleted.

+ * Returns true if this thread is already "doomed" to be deleted. * * A OFBiz deamon Thread (the "Grim Reaper") will collect all * doomed Threads, i.e. threads that are not longer active for some - * time.

+ * time. * * @return true if this thread is already "doomed" to be deleted */ @@ -173,7 +171,7 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Returns the report where the output of this Thread is written to.

+ * Returns the report where the output of this Thread is written to. * * @return the report where the output of this Thread is written to */ @@ -183,9 +181,8 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Initialize a HTML report for this Thread.

+ * Initialize a HTML report for this Thread. * - * @param locale the locale for the report output messages */ protected void initHtmlReport(HttpServletRequest request, HttpServletResponse response) { @@ -194,9 +191,8 @@ public abstract class AbstractReportThread extends Thread implements InterfaceRe } /** - * Initialize a HTML report for this Thread.

+ * Initialize a HTML report for this Thread. * - * @param locale the locale for the report output messages */ protected void initHtmlReport(HttpServletRequest request, HttpServletResponse response, boolean writeHtml, boolean isTransient) { diff --git a/pricat/src/main/java/org/apache/ofbiz/htmlreport/InterfaceReport.java b/pricat/src/main/java/org/apache/ofbiz/htmlreport/InterfaceReport.java index 9d97f04d3..931ee5005 100644 --- a/pricat/src/main/java/org/apache/ofbiz/htmlreport/InterfaceReport.java +++ b/pricat/src/main/java/org/apache/ofbiz/htmlreport/InterfaceReport.java @@ -159,11 +159,11 @@ public interface InterfaceReport { /** * Prints a localized message to the report, using the indicated formatting.

- * - * Use the contants starting with FORMAT from this interface - * to indicate which formatting to use.

* - * @param container the message container to add + * Use the contents starting with FORMAT from this interface + * to indicate which formatting to use. + * + * @param uiLabel the message container to add * @param format the formatting to use for the output */ void println(String uiLabel, int format); diff --git a/pricat/src/main/java/org/apache/ofbiz/htmlreport/sample/SampleHtmlReport.java b/pricat/src/main/java/org/apache/ofbiz/htmlreport/sample/SampleHtmlReport.java index 560f9560b..7c5bfde20 100644 --- a/pricat/src/main/java/org/apache/ofbiz/htmlreport/sample/SampleHtmlReport.java +++ b/pricat/src/main/java/org/apache/ofbiz/htmlreport/sample/SampleHtmlReport.java @@ -33,8 +33,8 @@ public class SampleHtmlReport extends AbstractHtmlReport { /** * Public constructor with report variables.

* - * @param req the HttpServletRequest request - * @param res the HttpServletResponse response + * @param request the HttpServletRequest request + * @param response the HttpServletResponse response */ public SampleHtmlReport(HttpServletRequest request, HttpServletResponse response) {