Browse Source

Fix DeadlockAnalyzer printer (#28615)

Remove `if` block that was always true.
Robin Neatherway 7 years ago
parent
commit
68b7a5c281

+ 1 - 3
server/src/main/java/org/elasticsearch/monitor/jvm/DeadlockAnalyzer.java

@@ -137,9 +137,7 @@ public class DeadlockAnalyzer {
             for (int x = 0; x < members.length; x++) {
                 ThreadInfo ti = members[x];
                 sb.append(ti.getThreadName());
-                if (x < members.length) {
-                    sb.append(" > ");
-                }
+                sb.append(" > ");
                 if (x == members.length - 1) {
                     sb.append(ti.getLockOwnerName());
                 }