diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-04 11:43:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-04 11:52:34 +0200 |
commit | cc25f70ef1e9fa7637b4bfd332ebdc33844a41c2 (patch) | |
tree | 76fe846c5b4ec24faa6ee53d34c49554eac3d4a8 /xmerge | |
parent | adc20c3937f3119d39af5a0c8e4a439d8127fe63 (diff) |
compareTo -> equals
convert OUString::compareTo usage to equals to startsWith where it
is more appropriate
Change-Id: I6f5b5b7942429c0099ad082ba4984fd18e422121
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/bridge/java/XMergeBridge.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmerge/source/bridge/java/XMergeBridge.java b/xmerge/source/bridge/java/XMergeBridge.java index ad76fcdbc2c6..2f4897da1f65 100644 --- a/xmerge/source/bridge/java/XMergeBridge.java +++ b/xmerge/source/bridge/java/XMergeBridge.java @@ -157,10 +157,10 @@ public class XMergeBridge { { try{ - if (pValue[i].Name.compareTo("InputStream")==0){ + if (pValue[i].Name.equals("InputStream")){ xis=(com.sun.star.io.XInputStream)AnyConverter.toObject(new Type(com.sun.star.io.XInputStream.class), pValue[i].Value); } - if (pValue[i].Name.compareTo("FileName")==0){ + if (pValue[i].Name.equals("FileName")){ sFileName=(String)AnyConverter.toObject(new Type(java.lang.String.class), pValue[i].Value); } @@ -234,15 +234,15 @@ public class XMergeBridge { try{ - if (pValue[i].Name.compareTo("OutputStream")==0){ + if (pValue[i].Name.equals("OutputStream")){ xos=(com.sun.star.io.XOutputStream)AnyConverter.toObject(new Type(com.sun.star.io.XOutputStream.class), pValue[i].Value); } - if (pValue[i].Name.compareTo("FileName")==0){ + if (pValue[i].Name.equals("FileName")){ sFileName=(String)AnyConverter.toObject(new Type(java.lang.String.class), pValue[i].Value); } - if (pValue[i].Name.compareTo("URL")==0){ + if (pValue[i].Name.equals("URL")){ sURL=(String)AnyConverter.toObject(new Type(java.lang.String.class), pValue[i].Value); } } |