aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java
diff options
context:
space:
mode:
authorSimon Pepping <spepping@apache.org>2006-12-20 08:34:28 +0000
committerSimon Pepping <spepping@apache.org>2006-12-20 08:34:28 +0000
commit057128e23fa539021ed00d801619d98b7850e7f7 (patch)
tree4263ed3dbb20dd7fc331bf1d94404c7175f02ff3 /src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java
parent471c26061f650f931ab4ce5ae316f013f33d2d71 (diff)
downloadxmlgraphics-fop-057128e23fa539021ed00d801619d98b7850e7f7.tar.gz
xmlgraphics-fop-057128e23fa539021ed00d801619d98b7850e7f7.zip
Comment out unused properties. Patch by Richard Wheeldon
<richardw@geoquip-rnd.demon.co.uk>. ASF Bugzilla Bug 41044, attachment 19177. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@488960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java')
-rw-r--r--src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java b/src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java
index 10fc75e93..d7b13b540 100644
--- a/src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java
+++ b/src/java/org/apache/fop/fo/properties/WhiteSpaceShorthandParser.java
@@ -42,17 +42,17 @@ public class WhiteSpaceShorthandParser implements ShorthandParser {
switch (propId) {
case Constants.PR_LINEFEED_TREATMENT:
case Constants.PR_WHITE_SPACE_TREATMENT:
- return new EnumProperty(Constants.EN_PRESERVE, "PRESERVE");
+ return EnumProperty.getInstance(Constants.EN_PRESERVE, "PRESERVE");
case Constants.PR_WHITE_SPACE_COLLAPSE:
- return new EnumProperty(Constants.EN_FALSE, "FALSE");
+ return EnumProperty.getInstance(Constants.EN_FALSE, "FALSE");
case Constants.PR_WRAP_OPTION:
- return new EnumProperty(Constants.EN_NO_WRAP, "NO_WRAP");
+ return EnumProperty.getInstance(Constants.EN_NO_WRAP, "NO_WRAP");
default:
//nop
}
case Constants.EN_NO_WRAP:
if (propId == Constants.PR_WRAP_OPTION) {
- return new EnumProperty(Constants.EN_NO_WRAP, "NO_WRAP");
+ return EnumProperty.getInstance(Constants.EN_NO_WRAP, "NO_WRAP");
}
case Constants.EN_NORMAL:
default: