mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
InlineStreamMapAction: correctly handle lambda parameters with explicit types
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Inline 'map' body into the next 'forEach' call" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void test(List<String> list) {
|
||||
list.stream().forEach((String s) -> System.out.println(s.trim()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Inline 'map' body into the next 'forEach' call" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void test(List<String> list) {
|
||||
list.stream().forEach(s -> System.out.println(s.trim()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Inline 'map' body into the next 'forEach' call" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void test(List<String> list) {
|
||||
list.stream().ma<caret>p((String s) -> s.trim()).forEach(x -> System.out.println(x));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Inline 'map' body into the next 'forEach' call" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void test(List<String> list) {
|
||||
list.stream().ma<caret>p(s -> s.trim()).forEach((String x) -> System.out.println(x));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user