]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Minor nits
authorAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 20:50:56 +0000 (20:50 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 20:50:56 +0000 (20:50 +0000)
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

index 6890d4ebcfb8adc2ae693fd944970744df668ecb..31bdaebbf84c8f4f0854eeddbbf510aedeb155fd 100644 (file)
@@ -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