Kaydet (Commit) b53415f1 authored tarafından rbuj's avatar rbuj Kaydeden (comit) Thomas Arnhold

xmerge: use String.length()==0 instead of String.equals(empty string)

Change-Id: I41b64c2dccad41193e15b6be2e62ce9dd63e0c3a
Reviewed-on: https://gerrit.libreoffice.org/11358Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst c346e0fa
...@@ -105,7 +105,7 @@ public final class DocumentDeserializerImpl ...@@ -105,7 +105,7 @@ public final class DocumentDeserializerImpl
public Source resolve(String href, String base) throws TransformerException { public Source resolve(String href, String base) throws TransformerException {
if (href != null) { 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; return null;
} }
try { try {
......
...@@ -200,7 +200,7 @@ public final class DocumentSerializerImpl ...@@ -200,7 +200,7 @@ public final class DocumentSerializerImpl
public Source resolve(String href, String base) public Source resolve(String href, String base)
throws TransformerException { throws TransformerException {
if (href != null) { 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; return null;
} }
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment