Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-11-26 22:21:49 +0000
committerKarsten Thoms2019-12-12 11:23:34 +0000
commit8ec8c931c0ff5ee2c495a72f8d025a42cf53b003 (patch)
treef88d7e841feda0fe850f8276f5dadf3a7aaf17e5 /org.eclipse.ua.tests/help
parent6afb3af14227fd1b3b5b2bd584d931d5dc2b9a61 (diff)
downloadeclipse.platform.ua-8ec8c931c0ff5ee2c495a72f8d025a42cf53b003.tar.gz
eclipse.platform.ua-8ec8c931c0ff5ee2c495a72f8d025a42cf53b003.tar.xz
eclipse.platform.ua-8ec8c931c0ff5ee2c495a72f8d025a42cf53b003.zip
Use .isEmpty() instead of .size()==0 or .equals("")
Change-Id: I795082af563324917ba37929eb8a4dbc74ed7ce8 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.ua.tests/help')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/InfocenterWorkingSetManagerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/InfocenterWorkingSetManagerTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/InfocenterWorkingSetManagerTest.java
index 86495e7a6..8b783851d 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/InfocenterWorkingSetManagerTest.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/InfocenterWorkingSetManagerTest.java
@@ -460,7 +460,7 @@ public class InfocenterWorkingSetManagerTest {
private void checkCookies(MockServletResponse resp) {
String illegalChars = resp.getIllegalCharatersFound();
- if (illegalChars.equals("") || illegalChars.equals("<")) {
+ if (illegalChars.isEmpty() || illegalChars.equals("<")) {
return;
}
fail("Cookie contains these illegal characters " + illegalChars + '"');

Back to the top