mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
IDEA-160988 Add inspection to merge adjacent Stream API calls
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Inline 'map' body into the next 'map' call" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void test(List<CharSequence> list) {
|
||||
list.stream().map(cs -> cs.subSequence(1, 5).length()).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user