OptionalToIfInspection: track flat map param name so it won't be used in another operation

GitOrigin-RevId: 42f90e621d37435cc122ee36c6b0a3267356c5e3
This commit is contained in:
Artemiy Sartakov
2020-04-29 08:35:45 +00:00
committed by intellij-monorepo-bot
parent 6f307e2d8c
commit b08c47448e
4 changed files with 26 additions and 1 deletions
@@ -58,6 +58,13 @@ class Test {
}
}
void flatMapsWithSameParamName(String param0) {
if (param0 == null) throw new NullPointerException();
String s = "foo";
String toLowerCase = ("foo").toLowerCase();
String bar = "bar";
}
String flatMapWithOrInside() {
Object o1 = null;
String empty = null;