aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2011-02-11 20:11:37 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2011-02-11 20:11:37 +0000
commite04d597c421d9198860772d07a2bda688cc45285 (patch)
tree0743bbf19abcdd65e800f6d286d624556f2b0545
parent5fad0eeea1c1f15c18c9af500cffad4b30485940 (diff)
downloadxmlgraphics-fop-e04d597c421d9198860772d07a2bda688cc45285.tar.gz
xmlgraphics-fop-e04d597c421d9198860772d07a2bda688cc45285.zip
Fix incorrect type safety
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1069941 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java5
1 files 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<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());
}