This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
The following commit(s) were added to refs/heads/master by this push:
new e21ab0d Fix Javadoc warnings
e21ab0d is described below
commit e21ab0d25bdbbabaa6c2cfb26a31701a348c963c
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 2 10:48:10 2019 +0100
Fix Javadoc warnings
---
src/samples/AloneService.java | 7 +++++--
src/samples/ProcrunService.java | 3 +--
src/samples/SimpleApplication.java | 10 ++++++----
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/samples/AloneService.java b/src/samples/AloneService.java
index 073b047..0a36fcc 100644
--- a/src/samples/AloneService.java
+++ b/src/samples/AloneService.java
@@ -40,9 +40,12 @@ public class AloneService {
/**
* init and destroy were added in jakarta-tomcat-daemon.
+ *
+ * @param arguments Unused
+ *
+ * @throws Exception If the daemon cannot be initialised
*/
- public void init(String[] arguments)
- throws Exception {
+ public void init(String[] arguments) throws Exception {
/* Set the err */
System.setErr(new PrintStream(new
FileOutputStream("/ServiceDaemon.err",true)));
System.err.println("ServiceDaemon: instance "+this.hashCode()+
diff --git a/src/samples/ProcrunService.java b/src/samples/ProcrunService.java
index d5ba620..0e60c02 100644
--- a/src/samples/ProcrunService.java
+++ b/src/samples/ProcrunService.java
@@ -52,8 +52,7 @@ public class ProcrunService implements Runnable {
/**
*
* @param wait seconds to wait in loop
- * @param filename optional filename - if non-null, run loop will stop
when it disappears
- * @throws IOException
+ * @param file optional file - if non-null, run loop will stop when it
disappears
*/
private ProcrunService(long wait, File file) {
pause=wait;
diff --git a/src/samples/SimpleApplication.java
b/src/samples/SimpleApplication.java
index c050024..05a3ebd 100644
--- a/src/samples/SimpleApplication.java
+++ b/src/samples/SimpleApplication.java
@@ -54,11 +54,13 @@ public class SimpleApplication implements Runnable {
}
/**
- * Main methos
+ * Main method
+ *
+ * @param args Optional port and directory configuration
+ *
+ * @throws Exception If the daemon cannot be set up
*/
- public static void main(String[] args)
- throws Exception
- {
+ public static void main(String[] args) throws Exception {
SimpleApplication app = new SimpleApplication();
System.err.println("SimpleApplication: instance " + app.hashCode()+
" init " + args.length);