Kaydet (Commit) cc5eb804 authored tarafından rbuj's avatar rbuj Kaydeden (comit) Thomas Arnhold

toolkit: use String.length()==0 instead of String.equals(empty string)

Change-Id: Id38f28e7138460493fde982cc1ebc75c3cb0b386
Reviewed-on: https://gerrit.libreoffice.org/11365Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst baa6bb96
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment