From 61acf55da4cabcd553662a955f6d0b4d2f907347 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 15 Mar 2011 09:52:39 +0000 Subject: [PATCH] avoided using a synchronized(this) for the hash computation to prevent that the lock on the object is (accidently) stolen by another thread and replaced this synchronization using the protocol object. Made also the protocol object final. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7602 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- .../yacy/cora/document/MultiProtocolURI.java | 59 ++++++++++--------- .../yacy/kelondro/data/meta/DigestURI.java | 4 +- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git a/source/net/yacy/cora/document/MultiProtocolURI.java b/source/net/yacy/cora/document/MultiProtocolURI.java index c126a9ecb..8f1f179fd 100644 --- a/source/net/yacy/cora/document/MultiProtocolURI.java +++ b/source/net/yacy/cora/document/MultiProtocolURI.java @@ -146,8 +146,9 @@ public class MultiProtocolURI implements Serializable, Comparable