From 496119ec9738b123c29ff94e16ee851bd48cc011 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Sun, 6 Feb 2011 20:50:56 +0000 Subject: [PATCH] Minor nits git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067756 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/SpaceResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/SpaceResolver.java b/src/java/org/apache/fop/layoutmgr/SpaceResolver.java index 6890d4ebc..31bdaebbf 100644 --- a/src/java/org/apache/fop/layoutmgr/SpaceResolver.java +++ b/src/java/org/apache/fop/layoutmgr/SpaceResolver.java @@ -136,7 +136,7 @@ public final class SpaceResolver { private String toString(Object[] arr1, Object[] arr2) { if (arr1.length != arr2.length) { - new IllegalArgumentException("The length of both arrays must be equal"); + throw new IllegalArgumentException("The length of both arrays must be equal"); } StringBuffer sb = new StringBuffer("["); for (int i = 0; i < arr1.length; i++) { @@ -647,7 +647,7 @@ public final class SpaceResolver { } } //last = !iter.hasNext(); - if (breakPoss == null && unresolvedSecond.size() == 0 && !last) { + if (breakPoss == null && unresolvedSecond.isEmpty() && !last) { LOG.trace("Swap first and second parts in no-break condition," + " second part is empty."); //The first list is reversed, so swap if this shouldn't happen -- 2.39.5