summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Ptaszkiewicz2012-06-22 16:47:50 (EDT)
committer John Arthorne2012-06-22 16:47:50 (EDT)
commit0a9fbd60650f62fba88679cac2ebac56fe94f2a6 (patch)
tree4f986a16a33b4f30a22703a52571fc4c2aea027c
parentda78c4106579f856e35e6969cd5d454d54696452 (diff)
downloadeclipse.platform.runtime-0a9fbd60650f62fba88679cac2ebac56fe94f2a6.zip
eclipse.platform.runtime-0a9fbd60650f62fba88679cac2ebac56fe94f2a6.tar.gz
eclipse.platform.runtime-0a9fbd60650f62fba88679cac2ebac56fe94f2a6.tar.bz2
Bug 363841 - [jobs] Confusing "," at the end of rule stack in ThreadJobv20120622-204750
-rw-r--r--bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.java b/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.java
index 102bf2e..184a16b 100644
--- a/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.java
+++ b/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.java
@@ -395,8 +395,11 @@ class ThreadJob extends Job {
String getRuleStack() {
StringBuffer buf = new StringBuffer();
buf.append('[');
- for (int i = 0; i <= top && i < ruleStack.length; i++)
- buf.append(ruleStack[i]).append(',');
+ for (int i = 0; i <= top && i < ruleStack.length; i++) {
+ buf.append(ruleStack[i]);
+ if (i != top)
+ buf.append(',');
+ }
buf.append(']');
return buf.toString();
}