mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
[java-highlighting] Better actual type definition; fixes for some type mismatch in collectors
GitOrigin-RevId: 3652f4511a067b86bc9138f492a2a88cded09de0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
099133f6e2
commit
a0bc3ee404
@@ -0,0 +1,11 @@
|
||||
// "Cast lambda return to 'long'" "true-preview"
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class StreamFilter {
|
||||
void test() {
|
||||
Map<String, Long> map = Stream.of("a", "b", "c").collect(Collectors.<caret>toMap(s -> s, s -> s.length()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user