mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 13:35:22 +02:00
for a StringBuffer.append(StringBuffer.toString()).
The append is only available on JDK-1.4.x
This commit is contained in:
parent
011ed212ae
commit
dca7bf0c47
1 changed files with 6 additions and 1 deletions
|
@ -117,7 +117,12 @@ public class MICommand extends Command {
|
|||
sb.insert(0, '"');
|
||||
sb.append('"');
|
||||
}
|
||||
buffer.append(' ').append(sb);
|
||||
// In JDK-1.4.x a new method was added to StringBuffer
|
||||
// StringBuffer.append(StringBuffer). This is not in
|
||||
// JDK-1.3.x, So when compiling with JDK-1.4.x
|
||||
// Running on JDK-1.3.x will not work.
|
||||
// We need to force the toString().
|
||||
buffer.append(' ').append(sb.toString());
|
||||
}
|
||||
}
|
||||
return buffer.toString().trim();
|
||||
|
|
Loading…
Add table
Reference in a new issue