From 4d35002582177c694e914aa3a0850e6c0a10b591 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Sun, 24 May 2015 12:14:23 +0000 Subject: [PATCH] Forgot to include in r1681435 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1681438 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/rtf/RTFHandler.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/render/rtf/RTFHandler.java b/src/java/org/apache/fop/render/rtf/RTFHandler.java index 347516fd7..05c68bec6 100644 --- a/src/java/org/apache/fop/render/rtf/RTFHandler.java +++ b/src/java/org/apache/fop/render/rtf/RTFHandler.java @@ -687,6 +687,7 @@ public class RTFHandler extends FOEventHandler { try { RtfAttributes atts = TableAttributesConverter.convertTablePartAttributes(part); + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") RtfTable tbl = (RtfTable)builderContext.getContainer(RtfTable.class, true, this); tbl.setHeaderAttribs(atts); } catch (IOException ioe) { @@ -703,6 +704,7 @@ public class RTFHandler extends FOEventHandler { } try { + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") RtfTable tbl = (RtfTable)builderContext.getContainer(RtfTable.class, true, this); tbl.setHeaderAttribs(null); } catch (IOException ioe) { @@ -738,6 +740,7 @@ public class RTFHandler extends FOEventHandler { try { // create an RtfTableRow in the current RtfTable + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") final RtfTable tbl = (RtfTable)builderContext.getContainer(RtfTable.class, true, null); @@ -768,6 +771,7 @@ public class RTFHandler extends FOEventHandler { try { TableContext tctx = builderContext.getTableContext(); + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") final RtfTableRow row = (RtfTableRow)builderContext.getContainer(RtfTableRow.class, true, null); @@ -805,6 +809,7 @@ public class RTFHandler extends FOEventHandler { try { TableContext tctx = builderContext.getTableContext(); + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") final RtfTableRow row = (RtfTableRow)builderContext.getContainer(RtfTableRow.class, true, null); @@ -894,7 +899,8 @@ public class RTFHandler extends FOEventHandler { return; } try { - RtfTableCell cell = (RtfTableCell) builderContext.getContainer(RtfTableCell.class, false, this); + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") + RtfTableCell cell = (RtfTableCell)builderContext.getContainer(RtfTableCell.class, false, this); cell.finish(); } catch (Exception e) { @@ -949,6 +955,7 @@ public class RTFHandler extends FOEventHandler { // create an RtfListItem in the current RtfList try { + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") RtfList list = (RtfList)builderContext.getContainer( RtfList.class, true, this); @@ -995,6 +1002,7 @@ public class RTFHandler extends FOEventHandler { } try { + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") RtfListItem item = (RtfListItem)builderContext.getContainer(RtfListItem.class, true, this); @@ -1325,6 +1333,7 @@ public class RTFHandler extends FOEventHandler { } try { + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") RtfFootnote rtfFootnote = (RtfFootnote)builderContext.getContainer( RtfFootnote.class, @@ -1346,6 +1355,7 @@ public class RTFHandler extends FOEventHandler { } try { + // @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE") RtfFootnote rtfFootnote = (RtfFootnote)builderContext.getContainer( RtfFootnote.class, -- 2.39.5