summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-09-09 19:26:28 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-09-09 18:39:44 +0000
commitcc5eb804fc66e0bc7f0029b2665656a73f85be48 (patch)
treeff2a50940ec853c5370308a92390f0fd44a4b9c0 /toolkit
parentbaa6bb9621f604669d09ba7a7f21c16d46430194 (diff)
toolkit: use String.length()==0 instead of String.equals(empty string)
Change-Id: Id38f28e7138460493fde982cc1ebc75c3cb0b386 Reviewed-on: https://gerrit.libreoffice.org/11365 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java
index c3c176ee2d9b..b18a405e3be0 100644
--- a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java
+++ b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java
@@ -629,7 +629,7 @@ public class _XAccessibleText {
System.out.println("getTextRange(0, 0): ");
txtRange = oObj.getTextRange(0, 0);
System.out.println(txtRange);
- locRes = txtRange.equals("");
+ locRes = txtRange.length() == 0;
res &= locRes;
if (!locRes) {
System.out.println("Empty string was expected");