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:
parent
da1086033d
commit
a44a80e8eb
1 changed files with 1 additions and 7 deletions
|
@ -30,13 +30,7 @@ public class CLICommand extends Command
|
||||||
* @return the text representation of this command
|
* @return the text representation of this command
|
||||||
*/
|
*/
|
||||||
public String toString(){
|
public String toString(){
|
||||||
String str = null;
|
String str = getToken() + " " + operation;
|
||||||
int t = getToken();
|
|
||||||
if (t > 0) {
|
|
||||||
str = Integer.toString(t) + " " + operation;
|
|
||||||
} else {
|
|
||||||
str = operation;
|
|
||||||
}
|
|
||||||
if (str.endsWith("\n"))
|
if (str.endsWith("\n"))
|
||||||
return str;
|
return str;
|
||||||
return str + "\n";
|
return str + "\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue