From 9826acf1e8c3552abc295ba34384292ae6db51b3 Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Fri, 2 Mar 2012 21:34:30 +0000 Subject: enable MultipleVariableDeclarations rule; fix violations git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1296483 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java | 3 ++- src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/java/org/apache/fop/layoutmgr/inline') diff --git a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java index f57b9367a..3b2f11ea2 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java @@ -1231,7 +1231,8 @@ public class LineLayoutManager extends InlineStackingLayoutManager ListIterator currParIterator = currPar.listIterator(currPar.ignoreAtStart); // list of TLM involved in hyphenation List updateList = new LinkedList(); - KnuthElement firstElement, nextElement; + KnuthElement firstElement; + KnuthElement nextElement; // current InlineLevelLayoutManager InlineLevelLayoutManager currLM = null; // number of KnuthBox elements containing word fragments diff --git a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java index 1ac206ee8..4010777ad 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java @@ -1320,7 +1320,8 @@ public class TextLayoutManager extends LeafNodeLayoutManager { // Find the first and last positions in oldList that point to an AreaInfo // (i.e. getLeafPos() != -1) - LeafPosition startPos = null, endPos = null; + LeafPosition startPos = null; + LeafPosition endPos = null; ListIterator oldListIter; for (oldListIter = oldList.listIterator(); oldListIter.hasNext();) { Position pos = ((KnuthElement) oldListIter.next()).getPosition(); @@ -1346,7 +1347,8 @@ public class TextLayoutManager extends LeafNodeLayoutManager { int areaInfosRemoved = 0; if (!changeList.isEmpty()) { - int oldIndex = -1, changeIndex; + int oldIndex = -1; + int changeIndex; PendingChange currChange; ListIterator changeListIterator = changeList.listIterator(); while (changeListIterator.hasNext()) { -- cgit v1.2.3