commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin van den Bemt <mll...@mvdb.net>
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) 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...

Mvgr,
Martin


---------------------------------------------------------------------
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