You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/21 17:32:05 UTC

[commons-daemon] branch master updated: Remove redundant modifiers like public on interface members.

This is an automated email from the ASF dual-hosted git repository.

ggregory 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 4011f70  Remove redundant modifiers like public on interface members.
4011f70 is described below

commit 4011f707a139cedaba4e0ad4aebb8cdaf1afc9b9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 21 12:32:01 2020 -0500

    Remove redundant modifiers like public on interface members.
---
 src/main/java/org/apache/commons/daemon/Daemon.java          |  8 ++++----
 src/main/java/org/apache/commons/daemon/DaemonContext.java   |  4 ++--
 .../java/org/apache/commons/daemon/DaemonController.java     | 12 ++++++------
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/main/java/org/apache/commons/daemon/Daemon.java b/src/main/java/org/apache/commons/daemon/Daemon.java
index 93fc6ad..7c4e75e 100644
--- a/src/main/java/org/apache/commons/daemon/Daemon.java
+++ b/src/main/java/org/apache/commons/daemon/Daemon.java
@@ -67,7 +67,7 @@ public interface Daemon
      * @throws Exception Any exception preventing a successful
      *                      initialization.
      */
-    public void init(DaemonContext context)
+    void init(DaemonContext context)
         throws DaemonInitException, Exception;
 
     /**
@@ -81,7 +81,7 @@ public interface Daemon
      *
      * @throws Exception If the start was not successful
      */
-    public void start()
+    void start()
         throws Exception;
 
     /**
@@ -93,7 +93,7 @@ public interface Daemon
      *
      * @throws Exception If the stop was not successful
      */
-    public void stop()
+    void stop()
         throws Exception;
 
     /**
@@ -103,6 +103,6 @@ public interface Daemon
      * can not be restarted after this method has been called without a
      * new call to the init() method.
      */
-    public void destroy();
+    void destroy();
 }
 
diff --git a/src/main/java/org/apache/commons/daemon/DaemonContext.java b/src/main/java/org/apache/commons/daemon/DaemonContext.java
index 888d1f0..214809d 100644
--- a/src/main/java/org/apache/commons/daemon/DaemonContext.java
+++ b/src/main/java/org/apache/commons/daemon/DaemonContext.java
@@ -30,7 +30,7 @@ public interface DaemonContext
      *          the {@link Daemon} instance that this {@code DaemonContext}
      *          is passed to.
      */
-    public DaemonController getController();
+    DaemonController getController();
 
     /**
      * @return An array of {@link String} arguments supplied by the environment
@@ -38,7 +38,7 @@ public interface DaemonContext
      *         {@code public static void main()} method used as an entry
      *         point to most other java programs.
      */
-    public String[] getArguments();
+    String[] getArguments();
 
 }
 
diff --git a/src/main/java/org/apache/commons/daemon/DaemonController.java b/src/main/java/org/apache/commons/daemon/DaemonController.java
index f07e164..e7ad580 100644
--- a/src/main/java/org/apache/commons/daemon/DaemonController.java
+++ b/src/main/java/org/apache/commons/daemon/DaemonController.java
@@ -30,7 +30,7 @@ public interface DaemonController
      * @throws IllegalStateException If the daemon is not in a valid state to be
      *                               shutdown
      */
-    public void shutdown()
+    void shutdown()
         throws IllegalStateException;
 
     /**
@@ -39,7 +39,7 @@ public interface DaemonController
      * @throws IllegalStateException If the daemon is not in a valid state to be
      *                               reloaded
      */
-    public void reload()
+    void reload()
         throws IllegalStateException;
 
     /**
@@ -48,7 +48,7 @@ public interface DaemonController
      * @throws IllegalStateException If the daemon is not in a valid state to be
      *                               shutdown
      */
-    public void fail()
+    void fail()
         throws IllegalStateException;
 
     /**
@@ -59,7 +59,7 @@ public interface DaemonController
      * @throws IllegalStateException If the daemon is not in a valid state to be
      *                               shutdown
      */
-    public void fail(String message)
+    void fail(String message)
         throws IllegalStateException;
 
     /**
@@ -70,7 +70,7 @@ public interface DaemonController
      * @throws IllegalStateException If the daemon is not in a valid state to be
      *                               shutdown
      */
-    public void fail(Exception exception)
+    void fail(Exception exception)
         throws IllegalStateException;
 
     /**
@@ -82,7 +82,7 @@ public interface DaemonController
      * @throws IllegalStateException If the daemon is not in a valid state to be
      *                               shutdown
      */
-    public void fail(String message, Exception exception)
+    void fail(String message, Exception exception)
         throws IllegalStateException;
 
 }