mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
DfaValueFactory: evaluate comparison with sentinel in createCondition()
This allows to evaluate conditions like "<unknown> = SENTINEL" to "false", rather than "<unknown>" like it was before. Fixes EA-136821 - ESE: Stack.peek
This commit is contained in:
@@ -294,4 +294,11 @@ public class StreamInlining {
|
||||
long count10 = list.stream().map(String::trim).count();
|
||||
if (<warning descr="Condition 'count10 == 0' is always 'false'">count10 == 0</warning>) {}
|
||||
}
|
||||
|
||||
void testFlatMapUnresolvedSymbol() {
|
||||
Stream.of("foo", "bar").flatMap(x -> Stream.of(
|
||||
<error descr="Cannot resolve symbol 'aa'">aa</error>,
|
||||
<error descr="Cannot resolve symbol 'bb'">bb</error>,
|
||||
<error descr="Cannot resolve symbol 'cc'">cc</error>));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user