You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/04/03 03:17:57 UTC

svn commit: r1584241 - /commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/admin/CacheElementInfo.java

Author: sebb
Date: Thu Apr  3 01:17:57 2014
New Revision: 1584241

URL: http://svn.apache.org/r1584241
Log:
Private immutable fields might as well be final

Modified:
    commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/admin/CacheElementInfo.java

Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/admin/CacheElementInfo.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/admin/CacheElementInfo.java?rev=1584241&r1=1584240&r2=1584241&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/admin/CacheElementInfo.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/admin/CacheElementInfo.java Thu Apr  3 01:17:57 2014
@@ -28,19 +28,19 @@ import java.beans.ConstructorProperties;
 public class CacheElementInfo
 {
     /** element key */
-    private String key = null;
+    private final String key;
 
     /** is it eternal */
-    private boolean eternal = false;
+    private final boolean eternal;
 
     /** when it was created */
-    private String createTime = null;
+    private final String createTime;
 
     /** max life */
-    private long maxLifeSeconds = -1;
+    private final long maxLifeSeconds;
 
     /** when it will expire */
-    private long expiresInSeconds = -1;
+    private final long expiresInSeconds;
 
     /**
      * Parameterized constructor