commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1144993 - in /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3: exception/DefaultExceptionContext.java time/DurationFormatUtils.java
Date Mon, 11 Jul 2011 00:51:17 GMT
Author: ggregory
Date: Mon Jul 11 00:51:16 2011
New Revision: 1144993

URL: http://svn.apache.org/viewvc?rev=1144993&view=rev
Log:
Make instance variables final where possible.

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java?rev=1144993&r1=1144992&r2=1144993&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
Mon Jul 11 00:51:16 2011
@@ -44,7 +44,7 @@ public class DefaultExceptionContext imp
     private static final long serialVersionUID = 20110706L;
 
     /** The list storing the label-data pairs. */
-    private List<Pair<String, Object>> contextValues = new ArrayList<Pair<String,Object>>();
+    private final List<Pair<String, Object>> contextValues = new ArrayList<Pair<String,Object>>();
 
     /**
      * {@inheritDoc}

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java?rev=1144993&r1=1144992&r2=1144993&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
Mon Jul 11 00:51:16 2011
@@ -559,7 +559,7 @@ public class DurationFormatUtils {
             return false;
         }
 
-        private Object value;
+        private final Object value;
         private int count;
 
         /**



Mime
View raw message