[Libreoffice-commits] core.git: toolkit/qa
rbuj
robert.buj at gmail.com
Tue Sep 9 11:40:10 PDT 2014
toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cc5eb804fc66e0bc7f0029b2665656a73f85be48
Author: rbuj <robert.buj at gmail.com>
Date: Tue Sep 9 19:26:28 2014 +0200
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 at arnhold.org>
Tested-by: Thomas Arnhold <thomas at arnhold.org>
diff --git a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java
index c3c176e..b18a405 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");
More information about the Libreoffice-commits
mailing list