diff options
author | Simon Steiner <ssteiner@apache.org> | 2016-03-29 10:53:09 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2016-03-29 10:53:09 +0000 |
commit | 1e47ef470b00c1540d31de7ba35589724f77781f (patch) | |
tree | 27e7d80c70362f7450994ddc82eb08d71647c807 | |
parent | 9fa960f223aef6e120496f6908bd7a7ed2e6efd4 (diff) | |
download | xmlgraphics-fop-1e47ef470b00c1540d31de7ba35589724f77781f.tar.gz xmlgraphics-fop-1e47ef470b00c1540d31de7ba35589724f77781f.zip |
Fix compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1736997 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java | 2 | ||||
-rw-r--r-- | fop-core/src/main/java/org/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) { |