Browse Source

Eliminate a small waste: no reason to store the char as a String, and then constuct a new one in getSpace()

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1059201 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_1rc1old
Andreas L. Delmelle 13 years ago
parent
commit
c3245eafd9
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/java/org/apache/fop/area/inline/SpaceArea.java

+ 3
- 3
src/java/org/apache/fop/area/inline/SpaceArea.java View File

@@ -29,7 +29,7 @@ public class SpaceArea extends InlineArea {
/**
* The space for this space area
*/
protected String space;
protected char space;

/**
* Is this space adjustable?
@@ -43,7 +43,7 @@ public class SpaceArea extends InlineArea {
* @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 InlineArea {
* @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) */

Loading…
Cancel
Save