Replace with trivial lambda default fixed after 2cfd1ece23

This commit is contained in:
Tagir Valeev
2019-02-07 10:58:44 +07:00
parent 2cfd1ece23
commit 5de8f58f34
@@ -11,9 +11,9 @@ public class MethodReferenceConstantValue {
}
public void test(Optional<String> opt) {
X x = (methodReferenceConstantValue, s) -> false;
X x = (methodReferenceConstantValue, s1) -> false;
Boolean aBoolean = opt.map(s -> false)
.map(o -> true)
.map(o1 -> true)
.map(o -> false)
.orElse(false);
if (opt.isPresent()) {