]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix incorrect type safety
authorAndreas L. Delmelle <adelmelle@apache.org>
Fri, 11 Feb 2011 20:11:37 +0000 (20:11 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Fri, 11 Feb 2011 20:11:37 +0000 (20:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1069941 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java

index 8a855b41f504e14c48a23b9dd5178f2fd83cf4b7..8b9282aea66a2aa9d3f3535d48c2579ed8abeaaa 100644 (file)
@@ -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<ListElement> footnoteList = null;
+            LinkedList<FootnoteBodyLayoutManager> 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<ListElement>();
+                            footnoteList = new LinkedList<FootnoteBodyLayoutManager>();
                         }
                         footnoteList.addAll(((KnuthBlockBox) el).getFootnoteBodyLMs());
                     }