mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-160977 Merge all similar threads
User's patch applied
This commit is contained in:
@@ -76,11 +76,14 @@ public class ThreadDumpPanel extends JPanel implements DataProvider {
|
||||
ThreadState state = copy.get(i);
|
||||
ThreadState.CompoundThreadState compound = new ThreadState.CompoundThreadState(state);
|
||||
myMergedThreadDump.add(compound);
|
||||
for (int j = i+1; j < copy.size(); j++) {
|
||||
for (int j = i + 1; j < copy.size(); ) {
|
||||
ThreadState toAdd = copy.get(j);
|
||||
if (compound.add(toAdd)) {
|
||||
copy.remove(j);
|
||||
}
|
||||
else {
|
||||
j++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user