Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 84896 invoked from network); 22 May 2006 12:39:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 May 2006 12:39:53 -0000 Received: (qmail 62748 invoked by uid 500); 22 May 2006 12:39:51 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 62642 invoked by uid 500); 22 May 2006 12:39:50 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 62631 invoked by uid 99); 22 May 2006 12:39:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 May 2006 05:39:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 May 2006 05:39:49 -0700 Received: by py-out-1112.google.com with SMTP id f28so1453666pyf for ; Mon, 22 May 2006 05:39:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qYqkLp23tjaSc7Apg9ARAc5Cgv+VWz0KXdauZgTxnv/jtfzwHnyzXydKkp7f5V3YSKQ914Z+35BpdiTwrQM0zb74mxC3nZjczOl3J+Nq9GfuGuW++qoxckXa6mdH1MVbpg3qhZTnZj5N5OLOVFHVT+slN3yIT6NxKQ6yJUzgPd8= Received: by 10.35.88.17 with SMTP id q17mr990915pyl; Mon, 22 May 2006 05:39:29 -0700 (PDT) Received: by 10.35.34.16 with HTTP; Mon, 22 May 2006 05:39:28 -0700 (PDT) Message-ID: <25aac9fc0605220539n6cf4db84x299a1829e6a590a9@mail.gmail.com> Date: Mon, 22 May 2006 13:39:28 +0100 From: sebb To: "Jakarta Commons Developers List" Subject: Re: [csv] j2se1.3 compatibility / header line writer In-Reply-To: <4471AB30.1060906@mvdb.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <446B0E07.2040606@netcetera.ch> <4471AB30.1060906@mvdb.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 22/05/06, Martin van den Bemt 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 ob= ject, 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