• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import java.util.List;
2import java.util.stream.IntStream;
3
4public class Agenda {
5
6    private List<String> persons;
7
8    public void lambdaImpliedReturn() {
9        return persons.stream().parallel().map(i -> {
10            addPerson("");
11        }).findFirst().get();
12    }
13
14    public void lambdaSingleReturn() {
15        return persons.stream().parallel().map(i -> {
16            return addPerson("");
17        }).findFirst().get();
18    }
19
20    public void multiLineReturn() {
21        return persons.stream().parallel().map(i -> {
22            int irrelevant;
23            return addPerson("");
24        }).findFirst().get();
25    }
26
27
28    String addPerson(String x){
29
30    }
31
32}
33