Update of /cvsroot/freenet/freenet/src/freenet/support
In directory sc8-pr-cvs1:/tmp/cvs-serv8560/src/freenet/support

Modified Files:
        BlockingQueue.java 
Log Message:
Hmmm...

Index: BlockingQueue.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/support/BlockingQueue.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- BlockingQueue.java  14 Oct 2003 16:32:08 -0000      1.19
+++ BlockingQueue.java  14 Oct 2003 16:33:56 -0000      1.20
@@ -127,16 +127,8 @@
     //Returns a snapshot of the current contents of the queue
     public Object[] toArray(){
                synchronized(queue) {
-                       Object[] a = new Object[queue.size()];
-                       Iterator it = queue.iterator();
-                       int index = 0;
-                       while(it.hasNext()){
-                               a[index] = it.next();
-                               index++;
-                       }
-                       return a;
+                       return queue.toArray();
                }
-       
     }
     // override in subclasses
     protected Object innerDequeue() {

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to