[Libreoffice-commits] core.git: qadevOOo/runner

Robert Antoni Buj i Gelonch robert.buj at gmail.com
Tue Oct 14 22:47:43 PDT 2014


 qadevOOo/runner/util/XMLTools.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b11968e8bfcc1c4560427a9ca1d9e20a1075eb1b
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date:   Tue Oct 14 15:23:57 2014 +0200

    runner: replace '.size() == 0' with '.isEmpty()' (collections)
    
    http://docs.oracle.com/javase/1.5.0/docs/api/java/util/ArrayList.html#isEmpty()
    
    Change-Id: I9a8f4feab9120d2d9fbf845f305380cda9b263bb
    Reviewed-on: https://gerrit.libreoffice.org/11968
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/qadevOOo/runner/util/XMLTools.java b/qadevOOo/runner/util/XMLTools.java
index ce15982..7dea190 100644
--- a/qadevOOo/runner/util/XMLTools.java
+++ b/qadevOOo/runner/util/XMLTools.java
@@ -718,7 +718,7 @@ public class XMLTools {
             if (!isWellFormed())
                 log.println("!!! Some errors were found in XML structure") ;
 
-            boolean result = tags.isEmpty() && chars.size() == 0 && isWellFormed();
+            boolean result = tags.isEmpty() && chars.isEmpty() && isWellFormed();
             reset();
             return result;
         }


More information about the Libreoffice-commits mailing list