Fix DeadlockAnalyzer printer (#28615)

Remove `if` block that was always true.
This commit is contained in:
Robin Neatherway 2018-02-12 23:28:56 +00:00 committed by Mayya Sharipova
parent 617044e5fe
commit 68b7a5c281
1 changed files with 1 additions and 3 deletions

View File

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