IDEA-221011 Incorrect "Always false" warning inside Collectors.toMap collector

GitOrigin-RevId: dc4750b8961aa2ec4d5c929a2a5944ec20b082d1
This commit is contained in:
Tagir Valeev
2019-08-22 09:01:39 +03:00
committed by intellij-monorepo-bot
parent 10a934af55
commit 3b3006c187
2 changed files with 3 additions and 2 deletions
@@ -665,8 +665,9 @@ public class StreamChainInliner implements CallInliner {
if (myMerger != null) {
builder.pushUnknown()
.ifConditionIs(true)
.pop()
.push(builder.getFactory().getFactValue(DfaFactType.NULLABILITY, DfaNullability.NOT_NULL))
.swap()
.dup()
.invokeFunction(2, myMerger)
.end();
}
@@ -19,7 +19,7 @@ class MyClass {
if (key1.size() > 1) {
newValues = key1;
newValues.addAll(key2);
} else if (<warning descr="Condition 'key2.size() > 1' is always 'false'">key2.size() > 1</warning>) {
} else if (key2.size() > 1) {
newValues = key2;
newValues.addAll(key1);
} else {