Author: toad
Date: 2008-04-05 10:27:30 +0000 (Sat, 05 Apr 2008)
New Revision: 19004
Modified:
trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
Log:
Better hashCode
Modified: trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
2008-04-05 10:24:44 UTC (rev 19003)
+++ trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
2008-04-05 10:27:30 UTC (rev 19004)
@@ -172,9 +172,8 @@
public int hashCode() {
int hash = 7;
- hash = 31 * hash + (this.key != null ? this.key.hashCode() : 0);
+ hash = 31 * hash + this.key.setSuggestedEdition(0).hashCode();
hash = 31 * hash + (this.hasAnActivelink ? 1 : 0);
- hash = 31 * hash + (this.alerts != null ?
this.alerts.hashCode() : 0);
hash = 31 * hash + (this.desc != null ? this.desc.hashCode() :
0);
return hash;
}