From 1333b12d434990bb29e19be5859fef67cc476b54 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Mon, 21 Feb 2011 19:07:16 +0000 Subject: [PATCH] Better way to eliminate FindBugs warning? git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073116 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java index 55c5cfd66..b748c2152 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java @@ -141,6 +141,7 @@ public class BlockLayoutManager extends BlockStackingLayoutManager return childLM.getNextKnuthElements(childLC, alignment); } else { if (childLM instanceof LineLayoutManager) { + assert (restartPosition instanceof LeafPosition); return ((LineLayoutManager) childLM).getNextKnuthElements(childLC, alignment, (LeafPosition) restartPosition); } else { -- 2.39.5