Author: toad
Date: 2009-03-24 11:44:34 +0000 (Tue, 24 Mar 2009)
New Revision: 26146
Modified:
branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java
Log:
Use ArrayList not Vector (note that this only changes the initialisation so it
is possible it doesn't need a node.db4o reset). Use generics properly.
Modified: branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java 2009-03-24
08:31:51 UTC (rev 26145)
+++ branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java 2009-03-24
11:44:34 UTC (rev 26146)
@@ -1,5 +1,6 @@
package freenet.node.fcp;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@@ -36,9 +37,9 @@
if(name == null) throw new NullPointerException();
this.currentConnection = handler;
final boolean forever = (persistenceType ==
ClientRequest.PERSIST_FOREVER);
- runningPersistentRequests = new Vector();
- completedUnackedRequests = new Vector();
- clientRequestsByIdentifier = new HashMap();
+ runningPersistentRequests = new ArrayList<ClientRequest>();
+ completedUnackedRequests = new ArrayList<ClientRequest>();
+ clientRequestsByIdentifier = new HashMap<String,
ClientRequest>();
this.isGlobalQueue = isGlobalQueue;
this.persistenceType = persistenceType;
assert(persistenceType == ClientRequest.PERSIST_FOREVER ||
persistenceType == ClientRequest.PERSIST_REBOOT);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs