harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r901124 - /harmony/enhanced/classlib/trunk/modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java
Date Wed, 20 Jan 2010 10:45:48 GMT
Author: hindessm
Date: Wed Jan 20 10:45:48 2010
New Revision: 901124

URL: http://svn.apache.org/viewvc?rev=901124&view=rev
Log:
Quick fix for build break with Harmony version of this class.

Modified:
    harmony/enhanced/classlib/trunk/modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java

Modified: harmony/enhanced/classlib/trunk/modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java?rev=901124&r1=901123&r2=901124&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java
Wed Jan 20 10:45:48 2010
@@ -468,7 +468,7 @@
     }
 
     /**
-     * gets the internal data array
+     * gets the internal data array (or a new array if it is null)
      *
      * @return the data array
      */
@@ -725,6 +725,15 @@
     }
 
     /**
+     * gets the internal data array
+     *
+     * @return the data array
+     */
+    final E[] getArray() {
+        return arr;
+    }
+
+    /**
      * list iterator implementation,
      * when created gets snapshot of the list,
      * so never throws ConcurrentModificationException
@@ -1171,4 +1180,5 @@
             setData(back);
         }
     }
-}
+
+}
\ No newline at end of file



Mime
View raw message