mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
InlineStreamMapAction: restore comments
This commit is contained in:
@@ -3,6 +3,9 @@ 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);
|
||||
/*before dot*/
|
||||
/*after dot*/
|
||||
list.stream()
|
||||
/*before dot2*/./*after dot2*/map(cs -> /*length!!!*/ cs.subSequence(/*subsequence*/1, 5).length()).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ 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);
|
||||
/*out of body*/
|
||||
list.stream().map(cs -> cs/*in body*/.subSequence(1, 5).length()).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void test(List<CharSequence> list) {
|
||||
list.stream().m<caret>ap(cs -> cs.subSequence(1, 5)).map(cs -> cs.length()).forEach(System.out::println);
|
||||
list.stream()/*before dot*/./*after dot*/m<caret>ap(cs -> cs.subSequence(/*subsequence*/1, 5))
|
||||
/*before dot2*/./*after dot2*/map(cs -> /*length!!!*/ cs.length()).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import java.util.List;
|
||||
public class Main {
|
||||
public static void test(List<CharSequence> list) {
|
||||
list.stream().m<caret>ap(cs -> {
|
||||
return cs.subSequence(1, 5);
|
||||
/*out of body*/ return cs/*in body*/.subSequence(1, 5);
|
||||
}).map(cs -> cs.length()).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user