Author: toad
Date: 2008-07-31 19:06:44 +0000 (Thu, 31 Jul 2008)
New Revision: 21545
Modified:
branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
Log:
PersistentChosenRequest.equals().
Modified:
branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
2008-07-31 19:05:19 UTC (rev 21544)
+++ branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
2008-07-31 19:06:44 UTC (rev 21545)
@@ -45,4 +45,11 @@
public int hashCode() {
return hashCode;
}
+
+ public boolean equals(Object o) {
+ if(!(o instanceof PersistentChosenRequest)) return false;
+ PersistentChosenRequest req = (PersistentChosenRequest) o;
+ if(req.core != core) return false;
+ return super.equals(o);
+ }
}