Author: toad
Date: 2008-06-26 17:18:11 +0000 (Thu, 26 Jun 2008)
New Revision: 20762
Modified:
branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
Not that way...
Modified: branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
2008-06-26 17:14:03 UTC (rev 20761)
+++ branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
2008-06-26 17:18:11 UTC (rev 20762)
@@ -143,7 +143,7 @@
index--;
ret.setParentGrabArray(null, container);
}
- if(logMINOR)
Logger.minor(this, "Chosen random item "+ret.getClass()+" out of "+valid);
+ if(logMINOR)
Logger.minor(this, "Chosen random item "+ret+" out of "+valid);
if(persistent &&
changedMe)
container.set(this);
return ret;
@@ -213,7 +213,7 @@
continue;
}
if(ret != null && !ret.canRemove(container)) {
- if(logMINOR) Logger.minor(this,
"Returning (cannot remove): "+ret.getClass()+" of "+index);
+ if(logMINOR) Logger.minor(this,
"Returning (cannot remove): "+ret+" of "+index);
if(persistent && changedMe)
container.set(this);
return ret;
@@ -242,7 +242,7 @@
if(ret != null) break;
}
}
- if(logMINOR) Logger.minor(this, "Returning "+ret.getClass()+"
of "+index);
+ if(logMINOR) Logger.minor(this, "Returning "+ret+" of "+index);
ret.setParentGrabArray(null, container);
if(persistent)
container.set(this);
Modified: branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
2008-06-26 17:14:03 UTC (rev 20761)
+++ branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
2008-06-26 17:18:11 UTC (rev 20762)
@@ -112,7 +112,7 @@
container.set(this);
}
if(logMINOR)
- Logger.minor(this, "Returning (one item
only) "+item.getClass()+" for "+rga+" for "+rga.getObject());
+ Logger.minor(this, "Returning (one item
only) "+item+" for "+rga+" for "+rga.getObject());
return item;
}
if(grabArrays.length == 2) {
@@ -146,13 +146,13 @@
container.deactivate(firstRGA,
1);
}
if(logMINOR)
- Logger.minor(this, "Returning
(two items only) "+item.getClass()+" for "+rga+" for "+rga.getObject());
+ Logger.minor(this, "Returning
(two items only) "+item+" for "+rga+" for "+rga.getObject());
return item;
} else {
if(persistent)
container.deactivate(rga, 1);
if(logMINOR)
- Logger.minor(this, "Returning
(two items only) "+item.getClass()+" for "+rga+" for "+rga.getObject());
+ Logger.minor(this, "Returning
(two items only) "+item+" for "+rga+" for "+rga.getObject());
return item;
}
}