From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16901 invoked by alias); 14 Aug 2007 15:35:45 -0000 Received: (qmail 16820 invoked by uid 22791); 14 Aug 2007 15:35:43 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 14 Aug 2007 15:35:37 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l7EFZWU1030623 for ; Tue, 14 Aug 2007 11:35:34 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l7EFZWVC001735; Tue, 14 Aug 2007 11:35:32 -0400 Received: from toner.toronto.redhat.com (toner.toronto.redhat.com [172.16.14.55]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l7EFZVZg002635; Tue, 14 Aug 2007 11:35:31 -0400 Message-ID: <46C1CBC3.4000308@redhat.com> Date: Tue, 14 Aug 2007 15:35:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: Andrew Cagney CC: frysk@sourceware.org Subject: Re: toPrint vs toString References: <46C1C8E8.4060805@redhat.com> In-Reply-To: <46C1C8E8.4060805@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00293.txt.bz2 > public void toPrint() > stringWriter = new StringBuffer() > printWriter = new PrintWriter(stringWriter) > toPrint(printWriter) > return stringWriter.toString(); this should be stringWriter.getBuffer().toString();