commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r776670 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
Date Wed, 20 May 2009 11:44:40 GMT
Author: sebb
Date: Wed May 20 11:44:40 2009
New Revision: 776670

URL: http://svn.apache.org/viewvc?rev=776670&view=rev
Log:
Make private static field final, as it is a constant

Modified:
    commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java

Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java?rev=776670&r1=776669&r2=776670&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
(original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
Wed May 20 11:44:40 2009
@@ -58,7 +58,7 @@
 public class CollectionUtils {
 
     /** Constant to avoid repeated object creation */
-    private static Integer INTEGER_ONE = new Integer(1);
+    private static final Integer INTEGER_ONE = new Integer(1);
 
     /**
      * An empty unmodifiable collection.



Mime
View raw message