aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2011-02-06 16:42:21 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2011-02-06 16:42:21 +0000
commitf7b0d89c8f143064e67691fd5ace4306d015bf71 (patch)
tree07781d8ed6125995846789fa90de4d610b191ca2 /src/java/org/apache/fop
parent8f57470e9e468a10cf773a1866a69d2298b4e89a (diff)
downloadxmlgraphics-fop-f7b0d89c8f143064e67691fd5ace4306d015bf71.tar.gz
xmlgraphics-fop-f7b0d89c8f143064e67691fd5ace4306d015bf71.zip
Fix checkstyle issues
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067698 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java3
-rw-r--r--src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java2
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();