From: Andreas L. Delmelle Date: Sun, 6 Feb 2011 16:42:21 +0000 (+0000) Subject: Fix checkstyle issues X-Git-Tag: fop-1_1rc1old~307 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f7b0d89c8f143064e67691fd5ace4306d015bf71;p=xmlgraphics-fop.git Fix checkstyle issues git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067698 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java index f683ab575..6b1038c1f 100644 --- a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java @@ -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; diff --git a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java index 1423053ff..1decfeb14 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java @@ -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();