]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Better way to eliminate FindBugs warning?
authorAndreas L. Delmelle <adelmelle@apache.org>
Mon, 21 Feb 2011 19:07:16 +0000 (19:07 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Mon, 21 Feb 2011 19:07:16 +0000 (19:07 +0000)
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

index 55c5cfd66550967c5543db3298509a40b2fcb3b0..b748c2152a07175b49ad0f0192097616b71bb0eb 100644 (file)
@@ -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 {