From 962cfdd2171ca49b9815c229c5d1ecf96ca9d92b Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Thu, 22 Mar 2007 10:13:25 +0000 Subject: [PATCH] Small improvements in the SpaceResolver class: - constructor made private as it shouldn't be called by other classes - inner classes made static; they are candidate for later becoming top-level classes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@521185 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/SpaceResolver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/SpaceResolver.java b/src/java/org/apache/fop/layoutmgr/SpaceResolver.java index 222f20040..0175835e1 100644 --- a/src/java/org/apache/fop/layoutmgr/SpaceResolver.java +++ b/src/java/org/apache/fop/layoutmgr/SpaceResolver.java @@ -57,7 +57,7 @@ public class SpaceResolver { * @param isFirst Resolution at the beginning of a (full) element list * @param isLast Resolution at the end of a (full) element list */ - public SpaceResolver(List first, BreakElement breakPoss, List second, + private SpaceResolver(List first, BreakElement breakPoss, List second, boolean isFirst, boolean isLast) { this.isFirst = isFirst; this.isLast = isLast; @@ -494,7 +494,7 @@ public class SpaceResolver { * Position class for break possibilities. It is used to notify layout manager about the * effective spaces and conditional lengths. */ - public class SpaceHandlingBreakPosition extends Position { + public static class SpaceHandlingBreakPosition extends Position { private SpaceResolver resolver; private Position originalPosition; @@ -566,7 +566,7 @@ public class SpaceResolver { * Position class for no-break situations. It is used to notify layout manager about the * effective spaces and conditional lengths. */ - public class SpaceHandlingPosition extends Position { + public static class SpaceHandlingPosition extends Position { private SpaceResolver resolver; -- 2.39.5