From a44a80e8ebc22d9c6cc90e044620e1974a13a7e8 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Sat, 26 Oct 2002 20:24:53 +0000 Subject: [PATCH] always send the token part of the string. --- .../org/eclipse/cdt/debug/mi/core/command/CLICommand.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CLICommand.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CLICommand.java index 40adbf42c61..1cf0d811bdc 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CLICommand.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CLICommand.java @@ -30,13 +30,7 @@ public class CLICommand extends Command * @return the text representation of this command */ public String toString(){ - String str = null; - int t = getToken(); - if (t > 0) { - str = Integer.toString(t) + " " + operation; - } else { - str = operation; - } + String str = getToken() + " " + operation; if (str.endsWith("\n")) return str; return str + "\n";