Skip to content

Commit 0d16451

Browse files
author
lamb
committed
debugtarget
1 parent 991c762 commit 0d16451

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

org.nodeclipse.debug/src/org/nodeclipse/debug/model/DebugTarget.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.nodeclipse.debug.model;
22

3-
import java.util.List;
43
import java.io.IOException;
54
import org.eclipse.core.resources.IMarkerDelta;
65
import org.eclipse.debug.core.DebugException;
@@ -19,7 +18,7 @@ public class DebugTarget extends NodeDebugElement implements IDebugTarget {
1918
private ILaunch launch;
2019
private IProcess process;
2120
private Process p;
22-
private List<Thread> threads;
21+
private IThread[] threads;
2322
private Thread thread;
2423
private boolean suspended;
2524

@@ -29,7 +28,7 @@ public DebugTarget(ILaunch launch, IProcess process, Process p) {
2928
this.process = process;
3029
this.p = p;
3130
this.thread = new Thread(this);
32-
threads.add(this.thread);
31+
threads = new Thread[] { this.thread };
3332
}
3433

3534
@Override
@@ -161,7 +160,7 @@ public IThread[] getThreads() throws DebugException {
161160
if (threads == null) {
162161
return new IThread[0];
163162
} else {
164-
return threads.toArray(new Thread[threads.size()]);
163+
return threads;
165164
}
166165
}
167166

0 commit comments

Comments
 (0)