Return-Path: Delivered-To: apmail-xmlgraphics-fop-commits-archive@www.apache.org Received: (qmail 34815 invoked from network); 14 Jan 2011 23:03:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jan 2011 23:03:49 -0000 Received: (qmail 51074 invoked by uid 500); 14 Jan 2011 23:03:49 -0000 Delivered-To: apmail-xmlgraphics-fop-commits-archive@xmlgraphics.apache.org Received: (qmail 51031 invoked by uid 500); 14 Jan 2011 23:03:49 -0000 Mailing-List: contact fop-commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-dev@xmlgraphics.apache.org Delivered-To: mailing list fop-commits@xmlgraphics.apache.org Received: (qmail 51024 invoked by uid 99); 14 Jan 2011 23:03:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 23:03:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 23:03:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 31B3323888FD; Fri, 14 Jan 2011 23:03:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1059201 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/SpaceArea.java Date: Fri, 14 Jan 2011 23:03:22 -0000 To: fop-commits@xmlgraphics.apache.org From: adelmelle@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110114230322.31B3323888FD@eris.apache.org> Author: adelmelle Date: Fri Jan 14 23:03:21 2011 New Revision: 1059201 URL: http://svn.apache.org/viewvc?rev=1059201&view=rev Log: Eliminate a small waste: no reason to store the char as a String, and then constuct a new one in getSpace() Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/SpaceArea.java Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/SpaceArea.java URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/SpaceArea.java?rev=1059201&r1=1059200&r2=1059201&view=diff ============================================================================== --- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/SpaceArea.java (original) +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/SpaceArea.java Fri Jan 14 23:03:21 2011 @@ -29,7 +29,7 @@ public class SpaceArea extends InlineAre /** * The space for this space area */ - protected String space; + protected char space; /** * Is this space adjustable? @@ -43,7 +43,7 @@ public class SpaceArea extends InlineAre * @param a is this space adjustable? */ public SpaceArea(char s, int o, boolean a) { - space = new String() + s; + space = s; offset = o; isAdjustable = a; } @@ -52,7 +52,7 @@ public class SpaceArea extends InlineAre * @return Returns the space. */ public String getSpace() { - return new String(space); + return String.valueOf(space); } /** @return true if the space is adjustable (WRT word-space processing) */ --------------------------------------------------------------------- To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org