From e3a156d11eccb3d56ee21d250c114a077697b73f Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Thu, 5 Apr 2012 02:41:59 +0000 Subject: Buzilla #51807: Fixed small memory waste in rowCells array construction. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1309636 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/table/TableStepper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java index 7e37eeb59..c58febd0e 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java @@ -200,7 +200,7 @@ public class TableStepper { LinkedList footnoteList = new LinkedList(); //Put all involved grid units into a list - List cellParts = new java.util.ArrayList(columnCount); + List cellParts = new java.util.ArrayList(activeCells.size()); for (Iterator iter = activeCells.iterator(); iter.hasNext();) { ActiveCell activeCell = (ActiveCell) iter.next(); CellPart part = activeCell.createCellPart(); -- cgit v1.2.3