mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
8 lines
281 B
Java
8 lines
281 B
Java
// "Inline 'map' body into the next 'forEach' call" "true"
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public static void test(List<CharSequence> list) {
|
|
(list.stream().map(cs -> cs.subSequence(1, 5))).forEach(charSequence -> System.out.println(charSequence.length()));
|
|
}
|
|
} |