From: Simon Steiner Date: Wed, 31 Jul 2024 11:48:23 +0000 (+0100) Subject: Cast warning X-Git-Tag: 2_10~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d071a52d9276cb34dfc46fe317810bd11aec4e84;p=xmlgraphics-fop.git Cast warning --- diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java index 9a519276e..e1e6ee538 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java @@ -486,7 +486,7 @@ public abstract class AbstractBreaker { } int restartPoint = getPageProvider().getStartingPartIndexForLastPage(optimalPageCount); if (restartPoint > 0) { - PageBreakPosition pbp = (PageBreakPosition) alg.getPageBreaks().get(restartPoint - 1); + PageBreakPosition pbp = alg.getPageBreaks().get(restartPoint - 1); int newStartPos = alg.par.getFirstBoxIndex(pbp.getLeafPos() + 1); return newStartPos > 0; }