diff --git a/htroot/Threaddump_p.java b/htroot/Threaddump_p.java index c60ef6d0f..fd942609b 100644 --- a/htroot/Threaddump_p.java +++ b/htroot/Threaddump_p.java @@ -59,13 +59,13 @@ public class Threaddump_p { Runtime runtime = Runtime.getRuntime(); ThreadDump.bufferappend(buffer, plain, "************* Start Thread Dump " + dt + " *******************"); - ThreadDump.bufferappend(buffer, plain, ""); + ThreadDump.bufferappend(buffer, plain, " "); ThreadDump.bufferappend(buffer, plain, "YaCy Version: " + versionstring); ThreadDump.bufferappend(buffer, plain, "Assigned   Memory = " + (runtime.maxMemory())); ThreadDump.bufferappend(buffer, plain, "Used       Memory = " + (runtime.totalMemory() - runtime.freeMemory())); ThreadDump.bufferappend(buffer, plain, "Available  Memory = " + (runtime.maxMemory() - runtime.totalMemory() + runtime.freeMemory())); - ThreadDump.bufferappend(buffer, plain, ""); - ThreadDump.bufferappend(buffer, plain, ""); + ThreadDump.bufferappend(buffer, plain, " "); + ThreadDump.bufferappend(buffer, plain, " "); int multipleCount = 100; File appPath = sb.getAppPath(); @@ -91,7 +91,7 @@ public class Threaddump_p { } } else if (OS.canExecUnix) { ThreadDump.bufferappend(buffer, plain, "this thread dump function can find threads that lock others, to enable this function start YaCy with 'startYACY.sh -l'"); - ThreadDump.bufferappend(buffer, plain, ""); + ThreadDump.bufferappend(buffer, plain, " "); } // generate a single thread dump diff --git a/source/net/yacy/kelondro/logging/ThreadDump.java b/source/net/yacy/kelondro/logging/ThreadDump.java index 126b4d97f..ee2b035a4 100644 --- a/source/net/yacy/kelondro/logging/ThreadDump.java +++ b/source/net/yacy/kelondro/logging/ThreadDump.java @@ -270,23 +270,23 @@ public class ThreadDump extends HashMap> imp final boolean plain, final Thread.State stateIn) { bufferappend(buffer, plain, "THREADS WITH STATES: " + stateIn.toString()); - bufferappend(buffer, plain, ""); + bufferappend(buffer, plain, " "); // write dumps for (final Map.Entry> entry: entrySet()) { final List threads = entry.getValue(); for (final String t: threads) bufferappend(buffer, plain, t); bufferappend(buffer, plain, entry.getKey().text); - bufferappend(buffer, plain, ""); + bufferappend(buffer, plain, " "); } - bufferappend(buffer, plain, ""); + bufferappend(buffer, plain, " "); } public void appendBlockTraces( final StringBuilder buffer, final boolean plain) { bufferappend(buffer, plain, "THREADS WITH STATES: LOCK FOR OTHERS"); - bufferappend(buffer, plain, ""); + bufferappend(buffer, plain, " "); final Map locks = countLocks(); for (int i = size() + 10; i > 0; i--) { @@ -297,11 +297,11 @@ public class ThreadDump extends HashMap> imp if (list == null) continue; bufferappend(buffer, plain, "Thread= " + entry.getKey()); for (final String s: list) bufferappend(buffer, plain, " " + (plain ? s : s.replaceAll("<", "<").replaceAll(">", ">"))); - bufferappend(buffer, plain, ""); + bufferappend(buffer, plain, " "); } } } - bufferappend(buffer, plain, ""); + bufferappend(buffer, plain, " "); } @@ -333,7 +333,7 @@ public class ThreadDump extends HashMap> imp bufferappend(buffer, plain, "Occurrences: " + e.getValue()); bufferappend(buffer, plain, e.getKey()); } - bufferappend(buffer, plain, ""); + bufferappend(buffer, plain, " "); } private static Map.Entry removeMax(final Map result) {