From 51534df0cb3b1e5ac3b8b7797e3d27cfa5e6f5ec Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 20 Jul 2009 08:21:17 +0000 Subject: [PATCH] fix for possible synchronization problem see also: http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2292&hilit=&p=16787#p16787 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6234 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/blob/ArrayStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/kelondro/blob/ArrayStack.java b/source/de/anomic/kelondro/blob/ArrayStack.java index 6879c678d..5f036702b 100755 --- a/source/de/anomic/kelondro/blob/ArrayStack.java +++ b/source/de/anomic/kelondro/blob/ArrayStack.java @@ -445,7 +445,7 @@ public class ArrayStack implements BLOB { * ask for the number of blob entries in each blob of the blob array * @return the number of entries in each blob */ - public int[] sizes() { + public synchronized int[] sizes() { int[] s = new int[blobs.size()]; int c = 0; for (blobItem bi: blobs) s[c++] = bi.blob.size();