1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

always send the token part of the string.

This commit is contained in:
Alain Magloire 2002-10-26 20:24:53 +00:00
parent da1086033d
commit a44a80e8eb

View file

@ -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";