Author: toad
Date: 2008-05-21 16:57:01 +0000 (Wed, 21 May 2008)
New Revision: 20021
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerBase.java
Log:
Document a minor activation issue
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerBase.java
===================================================================
---
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerBase.java
2008-05-21 16:22:20 UTC (rev 20020)
+++
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerBase.java
2008-05-21 16:57:01 UTC (rev 20021)
@@ -113,6 +113,11 @@
public boolean removePendingKey(SendableGet getter, boolean complain,
Key key) {
boolean dropped = false;
Object o;
+ /*
+ * Because arrays are not basic types,
pendingKeys.activationDepth(1) means that
+ * the SendableGet's returned here will be activated to depth
1, even if they were
+ * within a SendableGet[]. Tested as of 21/05/08.
+ */
synchronized(pendingKeys) {
o = pendingKeys.get(key);
if(o == null) {