fix string test
This commit is contained in:
parent
b34da57804
commit
ea797d5c5b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue