mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OptionalToIfInspection: propagate rename to nested operations for flatMap and or
GitOrigin-RevId: 338d1c5e49a05fdd0ab60321275acc7ac51bcb4d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6e44d7266e
commit
fcd1363aee
+7
@@ -40,6 +40,13 @@ class Test {
|
||||
.isPresent();
|
||||
}
|
||||
|
||||
void nestedOr(String param0) {
|
||||
boolean result;
|
||||
result = Optional.of(param0)
|
||||
.flatMap(var0 -> Optional.<String>empty().or(() -> Optional.of(var0)))
|
||||
.isEmpty();
|
||||
}
|
||||
|
||||
void flatMapsWithSameParamName(String param0) {
|
||||
Optional.of(param0)
|
||||
.flatMap(var0 -> Optional.of("foo").map(s -> ("foo").toLowerCase()))
|
||||
|
||||
Reference in New Issue
Block a user