From 8d83febb953e88cec775e9717815922bfd95efc5 Mon Sep 17 00:00:00 2001 From: low012 Date: Sat, 3 May 2008 10:16:04 +0000 Subject: [PATCH] *) BlacklistCleaner_p.java reports exception to log instead of System.err *) changes in formatting for better readability in BlacklistCleaner_p.java *) replaced test for necessary Java version (was 1.4.2, is 1.5 now) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4756 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/BlacklistCleaner_p.java | 31 +++++++++++++++++++++++-------- source/yacy.java | 4 ++-- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/htroot/BlacklistCleaner_p.java b/htroot/BlacklistCleaner_p.java index 68ff6c2d5..68924f4fa 100644 --- a/htroot/BlacklistCleaner_p.java +++ b/htroot/BlacklistCleaner_p.java @@ -150,8 +150,9 @@ public class BlacklistCleaner_p { private static void putBlacklists(serverObjects prop, String[] lists, String selected) { boolean supported = false; - for (int i=0; i 0) { @@ -166,8 +167,9 @@ public class BlacklistCleaner_p { } } else { prop.put("disabled", "1"); - for (int i=0; i it = post.keySet().iterator(); - while (it.hasNext()) - if ((s = (String)it.next()).indexOf(prefix) == 0) + while (it.hasNext()) { + if ((s = (String)it.next()).indexOf(prefix) == 0) { r.add(s.substring(prefix.length())); + } + } } else { Iterator> it = post.entrySet().iterator(); Map.Entry entry; while (it.hasNext()) { entry = it.next(); - if (entry.getKey().indexOf(prefix) == 0) r.add((String) entry.getValue()); + if (entry.getKey().indexOf(prefix) == 0) { + r.add((String) entry.getValue()); + } } } @@ -278,7 +284,11 @@ public class BlacklistCleaner_p { String s; for (int i=0; i