diff options
Diffstat (limited to 'org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommandResult.java')
-rw-r--r-- | org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommandResult.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommandResult.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommandResult.java index b98bcba70..dfc583266 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommandResult.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommandResult.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -21,21 +21,21 @@ import java.util.StringTokenizer; */ public class PDAStackCommandResult extends PDACommandResult { - + /** - * Array of frames return by the stack commands. The frames are ordered + * Array of frames return by the stack commands. The frames are ordered * with the highest-level frame first. */ final public PDAFrameData[] fFrames; - + PDAStackCommandResult(String response) { super(response); StringTokenizer st = new StringTokenizer(response, "#"); //$NON-NLS-1$ - List framesList = new ArrayList(); - + List<PDAFrameData> framesList = new ArrayList<PDAFrameData>(); + while (st.hasMoreTokens()) { framesList.add(new PDAFrameData(st.nextToken())); } - fFrames = (PDAFrameData[])framesList.toArray(new PDAFrameData[framesList.size()]); + fFrames = framesList.toArray(new PDAFrameData[framesList.size()]); } } |