diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-18 23:16:02 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-19 14:25:46 +0300 |
commit | f6e082f5172d791a49d98a6b6b7770d3b38c8695 (patch) | |
tree | 439c6d53e57e8b24f81f341eb0fc93583a3c42bd /testbench-api/src | |
parent | d8baecb239b0d91f477c450d2a08a472b169a08d (diff) | |
download | vaadin-framework-f6e082f5172d791a49d98a6b6b7770d3b38c8695.tar.gz vaadin-framework-f6e082f5172d791a49d98a6b6b7770d3b38c8695.zip |
Use String.isEmpty()
Diffstat (limited to 'testbench-api/src')
-rw-r--r-- | testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java index e219b53a04..7a4963d4ab 100644 --- a/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java +++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java @@ -36,7 +36,7 @@ public class AbstractComponentElement extends AbstractElement { captionId = getAttribute(GWT_ID_ATTRIBUTE); // IE8 getAttribute returns empty string instead of null // when there is no attribute with specified name - if (captionId == null || captionId.equals("")) { + if (captionId == null || captionId.isEmpty()) { WebElement elem = findElement( By.xpath(".//*[@" + GWT_ID_ATTRIBUTE + "]")); captionId = elem.getAttribute(GWT_ID_ATTRIBUTE); |