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 2021/11/04 12:34:42 UTC
[commons-daemon] branch master updated: Remove useless parentheses.
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 638c2cc Remove useless parentheses.
638c2cc is described below
commit 638c2ccd53f47a4b8e0ff2bfd6669c7f0ff9c68a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 4 08:34:40 2021 -0400
Remove useless parentheses.
Use diamonds.
---
src/test/java/org/apache/commons/daemon/SimpleDaemon.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/daemon/SimpleDaemon.java b/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
index 6ea9e02..af059d1 100644
--- a/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
+++ b/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
@@ -39,7 +39,7 @@ public class SimpleDaemon implements Daemon, Runnable, DaemonUserSignal {
public SimpleDaemon() {
System.err.println("SimpleDaemon: instance "+this.hashCode()+
" created");
- this.handlers =new Vector<Handler>();
+ this.handlers =new Vector<>();
}
@Override
@@ -219,7 +219,7 @@ public class SimpleDaemon implements Daemon, Runnable, DaemonUserSignal {
}
public int getConnectionNumber() {
- return(this.number);
+ return this.number;
}
public void setDirectoryName(final String directory) {
@@ -227,7 +227,7 @@ public class SimpleDaemon implements Daemon, Runnable, DaemonUserSignal {
}
public String getDirectoryName() {
- return(this.directory);
+ return this.directory;
}
public void log(final String name)