Constant methods: boxing support

GitOrigin-RevId: 6fa28da7fe823d2e5bea0ecabe1e49e34e55d7b6
This commit is contained in:
Tagir Valeev
2019-12-14 03:44:42 +00:00
committed by intellij-monorepo-bot
parent e413982fdf
commit 916cc45005
7 changed files with 38 additions and 5 deletions
@@ -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)
@@ -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)