commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1126200 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectArrayPool.java
Date Sun, 22 May 2011 19:32:56 GMT
Author: simonetripodi
Date: Sun May 22 19:32:56 2011
New Revision: 1126200

URL: http://svn.apache.org/viewvc?rev=1126200&view=rev
Log:
arrays reference can be final

Modified:
    incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectArrayPool.java

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectArrayPool.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectArrayPool.java?rev=1126200&r1=1126199&r2=1126200&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectArrayPool.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectArrayPool.java Sun May
22 19:32:56 2011
@@ -30,7 +30,7 @@ public final class ObjectArrayPool
     public static class SizePool
         extends Object
     {
-        private List<Object[]> arrays = new ArrayList<Object[]>();
+        private final List<Object[]> arrays = new ArrayList<Object[]>();
 
         private int arraySize;
 



Mime
View raw message