From 1e47ef470b00c1540d31de7ba35589724f77781f Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Tue, 29 Mar 2016 10:53:09 +0000 Subject: [PATCH] Fix compiler warnings git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1736997 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/fop/layoutmgr/LayoutManagerMapping.java | 2 +- .../apache/fop/layoutmgr/table/TableCellLayoutManager.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java index 7c0f9c999..e95cd18ec 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java @@ -425,7 +425,7 @@ public class LayoutManagerMapping implements LayoutManagerMaker { } while (baseIter.hasNext()) { // this happens when the retrieve-table-marker has been resolved - FONode child = (FONode) baseIter.next(); + FONode child = baseIter.next(); makeLayoutManagers(child, lms); } } diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java index e667049fa..2a4aff24e 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java @@ -443,7 +443,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager { adjustYOffset(curBlockArea, borderBeforeWidth); Block[][] blocks = new Block[getTableCell().getNumberRowsSpanned()][getTableCell() .getNumberColumnsSpanned()]; - GridUnit[] gridUnits = (GridUnit[]) primaryGridUnit.getRows().get(startRow); + GridUnit[] gridUnits = primaryGridUnit.getRows().get(startRow); int level = getTableCell().getBidiLevelRecursive(); for (int x = 0; x < getTableCell().getNumberColumnsSpanned(); x++) { GridUnit gu = gridUnits[x]; @@ -456,7 +456,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager { adjustBPD(blocks[startRow][x], -borderWidth); } } - gridUnits = (GridUnit[]) primaryGridUnit.getRows().get(endRow); + gridUnits = primaryGridUnit.getRows().get(endRow); for (int x = 0; x < getTableCell().getNumberColumnsSpanned(); x++) { GridUnit gu = gridUnits[x]; BorderInfo border = gu.getBorderAfter(borderAfterWhich); @@ -468,7 +468,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager { } } for (int y = startRow; y <= endRow; y++) { - gridUnits = (GridUnit[]) primaryGridUnit.getRows().get(y); + gridUnits = primaryGridUnit.getRows().get(y); BorderInfo border = gridUnits[0].getBorderStart(); int borderWidth = border.getRetainedWidth() / 2; if (borderWidth > 0) { -- 2.39.5