diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-09 16:34:41 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-09-09 18:34:52 +0000 |
commit | baa6bb9621f604669d09ba7a7f21c16d46430194 (patch) | |
tree | 31b6b27b3641b70326d2842f1ff5dc0767c34004 /wizards | |
parent | xmerge: use String.length()==0 instead of String.equals(empty string) (diff) | |
download | core-baa6bb9621f604669d09ba7a7f21c16d46430194.tar.gz core-baa6bb9621f604669d09ba7a7f21c16d46430194.zip |
wizards: use a character literal
Change-Id: I22d530e0feb9e3112b4f2e7548d6335235713247
Reviewed-on: https://gerrit.libreoffice.org/11360
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'wizards')
3 files changed, 7 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java index 12d4d4d4d8f0..58af791c254f 100644 --- a/wizards/com/sun/star/wizards/common/FileAccess.java +++ b/wizards/com/sun/star/wizards/common/FileAccess.java @@ -515,7 +515,7 @@ public class FileAccess */ private static String getExtension(String filename) { - int p = filename.indexOf("."); + int p = filename.indexOf('.'); if (p == -1) { return PropertyNames.EMPTY_STRING; @@ -526,7 +526,7 @@ public class FileAccess { filename = filename.substring(p + 1); } - while ((p = filename.indexOf(".")) > -1); + while ((p = filename.indexOf('.')) > -1); } return filename; } @@ -588,7 +588,7 @@ public class FileAccess } int pos = -1; int lastPos = 0; - while ((pos = url.indexOf("/", pos + 1)) > -1) + while ((pos = url.indexOf('/', pos + 1)) > -1) { lastPos = pos; } diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java index 82367827854d..2cd30ffcc08e 100644 --- a/wizards/com/sun/star/wizards/form/StyleApplier.java +++ b/wizards/com/sun/star/wizards/form/StyleApplier.java @@ -210,17 +210,17 @@ public class StyleApplier if (index > -1) { String sPropName = PropertyNames.EMPTY_STRING; - while (((sPropName.indexOf("}") < 0) && (index < _sDataList.length - 1))) + while (((sPropName.indexOf('}') < 0) && (index < _sDataList.length - 1))) { String scurline = _sDataList[index++]; if ((scurline.indexOf(_sPropertyDescription)) > 0) { - if (scurline.indexOf(":") > 0) + if (scurline.indexOf(':') > 0) { String[] sPropList = JavaTools.ArrayoutofString(scurline, ":"); String sPropValue = sPropList[1]; sPropValue = sPropValue.trim(); - if (sPropValue.indexOf("#") > -1) + if (sPropValue.indexOf('#') > -1) { sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SEMI_COLON); sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE); diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java index 93947e2b6bf4..8c8175b3b9e2 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java @@ -698,7 +698,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter { if (_sName.startsWith("field:[")) { - int nCloseBrace = _sName.lastIndexOf("]"); + int nCloseBrace = _sName.lastIndexOf(']'); return _sName.substring(7, nCloseBrace).trim(); } return _sName; |