OptionalToIfInspection: propagate rename to nested operations for flatMap and or

GitOrigin-RevId: 338d1c5e49a05fdd0ab60321275acc7ac51bcb4d
This commit is contained in:
Artemiy Sartakov
2020-04-30 05:32:53 +00:00
committed by intellij-monorepo-bot
parent 6e44d7266e
commit fcd1363aee
5 changed files with 70 additions and 54 deletions
@@ -58,6 +58,16 @@ class Test {
}
}
void nestedOr(String param0) {
boolean result;
result = true;
String s = null;
if (param0 == null) throw new NullPointerException();
String empty = null;
s = param0;
result = false;
}
void flatMapsWithSameParamName(String param0) {
if (param0 == null) throw new NullPointerException();
String s = "foo";