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: [email protected]
For additional commands, e-mail: [email protected]