Merge pull request #6930 from eugenp/BAEL-2776-v2

fix string test
This commit is contained in:
Loredana Crusoveanu 2019-05-11 09:45:56 +03:00 committed by GitHub
commit 9c127eeb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public class OptionalChainingUnitTest {
}
private Optional<String> createOptional(String input) {
if (input == null || input == "" || input == "empty") {
if (input == null || "".equals(input) || "empty".equals(input)) {
return Optional.empty();
}