mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-221011 Incorrect "Always false" warning inside Collectors.toMap collector
GitOrigin-RevId: dc4750b8961aa2ec4d5c929a2a5944ec20b082d1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
10a934af55
commit
3b3006c187
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user