mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
IDEA-160988 Add inspection to merge adjacent Stream API calls
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Merge 'map' call and 'boxed' call" "true"
|
||||
import java.util.List;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
public class Main {
|
||||
public static void test(List<CharSequence> list) {
|
||||
list.stream().map(cs -> (String)cs).mapToInt(String::length).asLongStream().mapToObj(x -> (Long) (x * 2)).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user