Update of /var/cvs/src/org/mmbase/bridge/implementation
In directory james.mmbase.org:/tmp/cvs-serv21993

Modified Files:
        BasicList.java 
Log Message:
actually it is now more logical to return in toArray the array of backing, 
which is an arraylist, so can probably do that quite efficiently


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge/implementation


Index: BasicList.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/implementation/BasicList.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- BasicList.java      18 Dec 2008 13:59:47 -0000      1.35
+++ BasicList.java      19 Dec 2008 15:53:26 -0000      1.36
@@ -18,7 +18,7 @@
  * This is the base class for all basic implementations of the bridge lists.
  *
  * @author Pierre van Rooden
- * @version $Id: BasicList.java,v 1.35 2008/12/18 13:59:47 michiel Exp $
+ * @version $Id: BasicList.java,v 1.36 2008/12/19 15:53:26 michiel Exp $
  */
 public class BasicList<E extends Comparable<? super E>> extends 
AbstractList<E> implements BridgeList<E>  {
 
@@ -120,7 +120,7 @@
     @Override public Object[] toArray() { // needed when you e.g. want to sort 
the list.
         // make sure every element is of the right type, otherwise sorting can 
happen on the wrong type.
         convertAll();
-        return super.toArray();
+        return backing.toArray();
     }
 
     public BridgeList<E> subList(int fromIndex, int toIndex)  {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to