fix for compile-bug in svn 583 (Martin guck mal ob das richtig ist: fifo oder filo-stack?)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@854 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent a2fa75e688
commit f6cf3967de

@ -46,6 +46,7 @@
import de.anomic.http.httpHeader; import de.anomic.http.httpHeader;
import de.anomic.server.serverObjects; import de.anomic.server.serverObjects;
import de.anomic.server.serverSwitch; import de.anomic.server.serverSwitch;
import de.anomic.tools.ImagePainter;
import java.awt.Graphics2D; import java.awt.Graphics2D;
import java.awt.Color; import java.awt.Color;
@ -59,6 +60,7 @@ import java.io.ByteArrayOutputStream;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
public class imagetest { public class imagetest {
@ -93,6 +95,10 @@ public class imagetest {
for (int i = 20; i < 100; i++) r.setPixel(i, 32, new int[]{0, 255, 0}); for (int i = 20; i < 100; i++) r.setPixel(i, 32, new int[]{0, 255, 0});
for (int i = 20; i < 100; i++) r.setPixel(i, 34, new int[]{0, 0, 255}); for (int i = 20; i < 100; i++) r.setPixel(i, 34, new int[]{0, 0, 255});
ImagePainter img = new ImagePainter(300, 200);
img.draw(3, 5, 277, 170, "AA1122");
g.drawImage(img, BufferedImageOp
return bi; return bi;
} }

@ -507,7 +507,7 @@ public final class plasmaStackCrawlThread extends Thread {
byte[][] entryBytes = null; byte[][] entryBytes = null;
stackCrawlMessage newMessage = null; stackCrawlMessage newMessage = null;
synchronized(this.urlEntryHashCache) { synchronized(this.urlEntryHashCache) {
urlHash = (String) this.urlEntryHashCache.remove(); urlHash = (String) this.urlEntryHashCache.removeLast();
entryBytes = this.urlEntryCache.remove(urlHash.getBytes()); entryBytes = this.urlEntryCache.remove(urlHash.getBytes());
} }

Loading…
Cancel
Save