commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [csv] j2se1.3 compatibility / header line writer
Date Mon, 22 May 2006 12:39:28 GMT
On 22/05/06, Martin van den Bemt <mllist@mvdb.net> wrote:
>
>
> urs hardegger wrote:
> > netcetera suggests the following changes to commons csv:
> >
> >
> >    1) CSVPartser.java:
> >     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...
>

Surely a StringBuffer is already an Object?

Or am I missing something here?

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message