]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix checkstyle issues
authorAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 16:42:21 +0000 (16:42 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 16:42:21 +0000 (16:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067698 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java
src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java

index f683ab57508f40866f256ba0762d8478d0743c45..6b1038c1f08fa89fe5b9c07edd8ea11089c9a712 100644 (file)
@@ -88,7 +88,8 @@ public class FlowLayoutManager extends BlockStackingLayoutManager
             currentChildLM = restartPosition.getLM();
             if (currentChildLM == null) {
                 throw new IllegalStateException(
-                        "Cannot find layout manager from where to re-start layout after IPD change");
+                        "Cannot find layout manager from where to re-start "
+                        + "layout after IPD change");
             }
             if (restartLM != null && restartLM.getParent() == this) {
                 currentChildLM = restartLM;
index 1423053ffe0bf8031106f407d342ef22bd981902..1decfeb1446a23ee3c637e9efab83bdce5e51e33 100644 (file)
@@ -980,7 +980,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager
         /* comment out the next lines in order to test particular situations */
         if (fobj.getOrphans() + fobj.getWidows() <= llPoss.getMinLineCount()) {
             innerLines = llPoss.getMinLineCount() - (fobj.getOrphans() + fobj.getWidows());
-            optionalLines = llPoss.getMaxLineCount()- llPoss.getOptLineCount();
+            optionalLines = llPoss.getMaxLineCount() - llPoss.getOptLineCount();
             eliminableLines = llPoss.getOptLineCount() - llPoss.getMinLineCount();
         } else if (fobj.getOrphans() + fobj.getWidows() <= llPoss.getOptLineCount()) {
             optionalLines = llPoss.getMaxLineCount() - llPoss.getOptLineCount();