summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-14 15:23:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-15 05:47:19 +0000
commitb11968e8bfcc1c4560427a9ca1d9e20a1075eb1b (patch)
tree1f86b5628fce93e2142dd51e88a48389423c1e92 /qadevOOo
parentcdecac849b2aaf8314f3cb2046f70b3b436519a7 (diff)
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@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/util/XMLTools.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/qadevOOo/runner/util/XMLTools.java b/qadevOOo/runner/util/XMLTools.java
index ce15982727f9..7dea190ed372 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;
}