From f7b0d89c8f143064e67691fd5ace4306d015bf71 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Sun, 6 Feb 2011 16:42:21 +0000 Subject: [PATCH] Fix checkstyle issues 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 | 3 ++- .../org/apache/fop/layoutmgr/inline/LineLayoutManager.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.39.5