diff options
Diffstat (limited to 'qadevOOo/runner/util/XMLTools.java')
-rw-r--r-- | qadevOOo/runner/util/XMLTools.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/runner/util/XMLTools.java b/qadevOOo/runner/util/XMLTools.java index 5f43f06d7c0c..ce15982727f9 100644 --- a/qadevOOo/runner/util/XMLTools.java +++ b/qadevOOo/runner/util/XMLTools.java @@ -289,7 +289,7 @@ public class XMLTools { public void endElement(String name) { super.endElement(name); if (wellFormed) { - if (tagStack.size() == 0) { + if (tagStack.isEmpty()) { wellFormed = false ; printError("No tags to close (bad closing tag </" + name + ">)") ; } else { @@ -718,7 +718,7 @@ public class XMLTools { if (!isWellFormed()) log.println("!!! Some errors were found in XML structure") ; - boolean result = tags.size() == 0 && chars.size() == 0 && isWellFormed(); + boolean result = tags.isEmpty() && chars.size() == 0 && isWellFormed(); reset(); return result; } |