diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-09 16:22:19 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-09-09 18:34:34 +0000 |
commit | b53415f168b06a0ae1dfbc73f796bb03ddd40651 (patch) | |
tree | a6a1a2bdf194834e904786e3324b7dddbd18f3c9 /xmerge | |
parent | c346e0faa20845555e9392c1c8aaba7cf3508fdb (diff) |
xmerge: use String.length()==0 instead of String.equals(empty string)
Change-Id: I41b64c2dccad41193e15b6be2e62ce9dd63e0c3a
Reviewed-on: https://gerrit.libreoffice.org/11358
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'xmerge')
2 files changed, 2 insertions, 2 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java index 434d60c4f2f3..b29e89fd44f2 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java @@ -105,7 +105,7 @@ public final class DocumentDeserializerImpl public Source resolve(String href, String base) throws TransformerException { if (href != null) { - if (href.equals("javax.xml.transform.dom.DOMSource") || href.equals("")) { + if (href.equals("javax.xml.transform.dom.DOMSource") || href.length() == 0) { return null; } try { diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java index 25131cb03184..6c238db82fa1 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java @@ -200,7 +200,7 @@ public final class DocumentSerializerImpl public Source resolve(String href, String base) throws TransformerException { if (href != null) { - if (href.equals("javax.xml.transform.dom.DOMSource") || href.equals("")) { + if (href.equals("javax.xml.transform.dom.DOMSource") || href.length() == 0) { return null; } try { |