diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-10 00:31:08 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-11 06:11:03 +0000 |
commit | 2844128a9494c2877595b65ee01f4c099176cafa (patch) | |
tree | 458278596851495e98f33d007396c186af7d0009 /swext | |
parent | f1b8d8832d38621ae9fbe08bf9bde414230fc5c3 (diff) |
mediawiki: use String.length()==0 instead of String.equals(empty string)
Change-Id: I849da46aee801686cf6a581d65276ab60575c078
Reviewed-on: https://gerrit.libreoffice.org/11372
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'swext')
-rw-r--r-- | swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java index 2c74d4070522..aa95ea4a6016 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java @@ -233,13 +233,13 @@ public class WikiEditSettingDialog extends WikiDialog //the URL is valid String sMainURL = Helper.GetMainURL( sWebPage, sURL ); - if ( sMainURL.equals( "" ) ) + if ( sMainURL.length() == 0 ) { // TODO: // it's not a Wiki Page, check first whether a redirect is requested // happens usually in case of https sRedirectURL = Helper.GetRedirectURL( sWebPage, sURL ); - if ( sRedirectURL.equals( "" ) ) + if ( sRedirectURL.length() == 0 ) { // show error Helper.ShowError( m_xContext, |