commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1023263 - in /commons/proper/daemon/trunk/src/java/org/apache/commons/daemon: Main.java support/DaemonConfiguration.java
Date Sat, 16 Oct 2010 12:07:23 GMT
Author: sebb
Date: Sat Oct 16 12:07:22 2010
New Revision: 1023263

URL: http://svn.apache.org/viewvc?rev=1023263&view=rev
Log:
Make immutable private variables final

Modified:
    commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/Main.java
    commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonConfiguration.java

Modified: commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/Main.java
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/Main.java?rev=1023263&r1=1023262&r2=1023263&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/Main.java (original)
+++ commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/Main.java Sat Oct 16 12:07:22
2010
@@ -45,10 +45,10 @@ public class Main implements Daemon
     private final static String STOP_METHOD     = "stop.method";
     private final static String STOP_ARGS       = "stop.args";
     private String              configFileName  = null;
-    private DaemonConfiguration config;
+    private final DaemonConfiguration config;
 
-    private Invoker             startup         = null;
-    private Invoker             shutdown        = null;
+    private final Invoker             startup;
+    private final Invoker             shutdown;
 
     public Main()
     {

Modified: commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonConfiguration.java?rev=1023263&r1=1023262&r2=1023263&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonConfiguration.java
(original)
+++ commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonConfiguration.java
Sat Oct 16 12:07:22 2010
@@ -63,8 +63,8 @@ public final class DaemonConfiguration
     private   final static String ETOKEN                = "}";
 
 
-    private Properties configurationProperties;
-    private Properties systemProperties;
+    private final Properties configurationProperties;
+    private final Properties systemProperties;
 
     /**
      * Default constructor



Mime
View raw message