harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r597419 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/ArrayList.java
Date Thu, 22 Nov 2007 15:02:29 GMT
Author: tellison
Date: Thu Nov 22 07:02:29 2007
New Revision: 597419

URL: http://svn.apache.org/viewvc?rev=597419&view=rev
Log:
Fix for HARMONY-4858 ([classlib][util] ArrayList#ArrayList() constructs an empty list with
capacity of ten)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/ArrayList.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/ArrayList.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/ArrayList.java?rev=597419&r1=597418&r2=597419&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/ArrayList.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/ArrayList.java Thu
Nov 22 07:02:29 2007
@@ -43,10 +43,10 @@
     private transient E[] array;
 
     /**
-     * Constructs a new instance of ArrayList with zero capacity.
+     * Constructs a new instance of ArrayList with capacity for ten elements.
      */
     public ArrayList() {
-        this(0);
+        this(10);
     }
 
     /**



Mime
View raw message