commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin van den Bemt <>
Subject Re: [csv] j2se1.3 compatibility / header line writer
Date Mon, 22 May 2006 12:14:40 GMT

urs hardegger wrote:
> netcetera suggests the following changes to commons csv:
>    1)
>     StringBuffer.append(StringBuffer) is no supported in JDK 1.3.
>       It would be a pitty to have an incompatibility because
>       of this issue. In case this is performance critical,
>       we surround this with an if statement for the JDK version.

It is supported in jdk1.3.. Just cast the stringbuffer passed in to an object, so like
StringBuffer.append((Object) StringBuffer)). Much more efficient than an if...


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message