mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-16 05:47:32 +07:00
Constant methods: boxing support
GitOrigin-RevId: 6fa28da7fe823d2e5bea0ecabe1e49e34e55d7b6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e413982fdf
commit
916cc45005
+1
-1
@@ -15,7 +15,7 @@ public class MethodReferenceConstantValue {
|
||||
Boolean aBoolean = opt.map(s -> false)
|
||||
.map(o1 -> true)
|
||||
.map(o -> false)
|
||||
.orElse(false);
|
||||
.orElse(new Random().nextBoolean());
|
||||
if (opt.isPresent()) {
|
||||
Stream.generate(() -> true)
|
||||
.limit(10)
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ public class MethodReferenceConstantValue {
|
||||
Boolean aBoolean = opt.map(th<caret>is::strangeMethod)
|
||||
.map(Objects::nonNull)
|
||||
.map(Objects::isNull)
|
||||
.orElse(false);
|
||||
.orElse(new Random().nextBoolean());
|
||||
if (opt.isPresent()) {
|
||||
Stream.generate(opt::isPresent)
|
||||
.limit(10)
|
||||
|
||||
Reference in New Issue
Block a user