IDEA-160988 Add inspection to merge adjacent Stream API calls

This commit is contained in:
Tagir Valeev
2016-10-17 17:14:22 +07:00
parent de4563d048
commit 86eaaf22bf
31 changed files with 564 additions and 11 deletions

View File

@@ -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);
}
}