From e04d597c421d9198860772d07a2bda688cc45285 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Fri, 11 Feb 2011 20:11:37 +0000 Subject: [PATCH] Fix incorrect type safety git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1069941 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/list/ListItemLayoutManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java b/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java index 8a855b41f..8b9282aea 100644 --- a/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java @@ -38,6 +38,7 @@ import org.apache.fop.layoutmgr.BreakElement; import org.apache.fop.layoutmgr.ConditionalElementListener; import org.apache.fop.layoutmgr.ElementListObserver; import org.apache.fop.layoutmgr.ElementListUtils; +import org.apache.fop.layoutmgr.FootnoteBodyLayoutManager; import org.apache.fop.layoutmgr.Keep; import org.apache.fop.layoutmgr.KnuthBlockBox; import org.apache.fop.layoutmgr.KnuthBox; @@ -313,14 +314,14 @@ public class ListItemLayoutManager extends BlockStackingLayoutManager // collect footnote information // TODO this should really not be done like this. ListItemLM should remain as // footnote-agnostic as possible - LinkedList footnoteList = null; + LinkedList footnoteList = null; ListElement el; for (int i = 0; i < elementLists.length; i++) { for (int j = start[i]; j <= end[i]; j++) { el = (ListElement) elementLists[i].get(j); if (el instanceof KnuthBlockBox && ((KnuthBlockBox) el).hasAnchors()) { if (footnoteList == null) { - footnoteList = new LinkedList(); + footnoteList = new LinkedList(); } footnoteList.addAll(((KnuthBlockBox) el).getFootnoteBodyLMs()); } -- 2.39.5