1
0
Fork 0
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:
Alain Magloire 2003-12-16 22:24:31 +00:00
parent 011ed212ae
commit dca7bf0c47

View file

@ -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();