fix string test

This commit is contained in:
Loredana 2019-05-10 23:57:22 +03:00
parent b34da57804
commit ea797d5c5b
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();
}