From b21c208b4df75d66c156e0ede9f1a1df7eb16dc0 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 11 Apr 2014 10:23:48 +0200 Subject: [PATCH] enhanced hashcode computation for MultiProtocolURL --- source/net/yacy/cora/document/id/MultiProtocolURL.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/cora/document/id/MultiProtocolURL.java b/source/net/yacy/cora/document/id/MultiProtocolURL.java index 70f859c87..c9af0763e 100644 --- a/source/net/yacy/cora/document/id/MultiProtocolURL.java +++ b/source/net/yacy/cora/document/id/MultiProtocolURL.java @@ -950,7 +950,14 @@ public class MultiProtocolURL implements Serializable, Comparable> 2) + + (this.host == null ? 0 : this.host.hashCode() >> 2) + + (this.userInfo == null ? 0 : this.userInfo.hashCode() >> 2) + + (this.path == null ? 0 : this.path.hashCode() >> 2) + + (this.searchpart == null ? 0 : this.searchpart.hashCode() >> 2) + + this.port; + //return this.toNormalform(true).hashCode(); } /* (non-Javadoc)