mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 12:50:56 +07:00
Partially fixes IDEA-181794 Suggest completion items with type casts in stream chains if there exists 'filter(x -> x instanceof Foo)' call Fixes IDEA-182455 Code completion: resolve actual value type assigned to local variable
9 lines
170 B
Java
9 lines
170 B
Java
import java.util.*;
|
|
|
|
class Foo {
|
|
void test(Optional<Object> opt) {
|
|
opt.filter(x -> x instanceof String)
|
|
.map(s -> ((String) s).substring())
|
|
}
|
|
}
|