xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r554551 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java
Date Mon, 09 Jul 2007 07:54:36 GMT
Author: jeremias
Date: Mon Jul  9 00:54:35 2007
New Revision: 554551

URL: http://svn.apache.org/viewvc?view=rev&rev=554551
Log:
Fix build errors after revision 554251.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java?view=diff&rev=554551&r1=554550&r2=554551
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java Mon Jul  9 00:54:35
2007
@@ -19,8 +19,6 @@
 
 package org.apache.fop.fo.flow;
 
-import java.util.BitSet;
-import java.util.Iterator;
 import java.util.List;
 
 import org.apache.fop.apps.FOPException;
@@ -30,7 +28,6 @@
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
 import org.apache.fop.fo.PropertyList;
-import org.apache.fop.fo.ValidationException;
 import org.apache.fop.fo.expr.PropertyException;
 import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
 import org.apache.fop.fo.properties.NumberProperty;
@@ -327,7 +324,7 @@
                     }
                 }
             }
-            return new NumberProperty(
+            return NumberProperty.getInstance(
                     ((TableFObj) fo.getParent()).getCurrentColumnIndex());
         }
         
@@ -354,14 +351,14 @@
                         + "column-number on " + fo.getName() + ": "
                         + columnIndex + " forced to " 
                         + parent.getCurrentColumnIndex());
-                return new NumberProperty(parent.getCurrentColumnIndex());
+                return NumberProperty.getInstance(parent.getCurrentColumnIndex());
             } else {
                 double tmpIndex = p.getNumeric().getNumericValue();
                 if (tmpIndex - columnIndex > 0.0) {
                     columnIndex = (int) Math.round(tmpIndex);
                     log.warn("Rounding specified column-number of "
                             + tmpIndex + " to " + columnIndex);
-                    p = new NumberProperty(columnIndex);
+                    p = NumberProperty.getInstance(columnIndex);
                 }
             }
             



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message