mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Replace with trivial lambda default fixed after 2cfd1ece23
This commit is contained in:
+2
-2
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user