mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
#IDEA-364409 fixed Merge-request: IJ-MR-156093 Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com> GitOrigin-RevId: 4f9d55f471e2a4f79f9c8a6c6626b27145fafcbf
20 lines
483 B
Java
20 lines
483 B
Java
// "Fix all 'Stream API call chain can be simplified' problems in file" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Test {
|
|
void test(Map<String, List<Integer>> map) {
|
|
String str = map.keySet().stream()
|
|
.map(s -> s + "!")
|
|
.collect(Collectors.joining());
|
|
}
|
|
|
|
void test(Map<Object, List<Integer>> map) {
|
|
String str = map.keySet().stream()
|
|
.map(o -> o + ", ")
|
|
.collect(Collectors.joining());
|
|
}
|
|
}
|