aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValInLambda.java
blob: 1f56ee3faf8a338aae8dcb2e962789e5988fe685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import java.util.function.Function;
import java.util.function.Supplier;
import lombok.val;
class ValInLambda {
  Runnable foo = (Runnable) () -> {
  final @val int i = 1;
  final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
} : System.out::println);
};
  ValInLambda() {
    super();
  }
  public void easyLambda() {
    Runnable foo = (Runnable) () -> {
  final @val int i = 1;
};
  }
  public void easyIntersectionLambda() {
    Runnable foo = (Runnable) () -> {
  final @val int i = 1;
};
  }
  public void easyLubLambda() {
    Runnable foo = (Runnable) () -> {
  final @lombok.val java.lang.Runnable fooInner = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
} : System.out::println);
};
  }
  public void inParameter() {
    final @val java.util.function.Function<java.util.function.Supplier<java.lang.String>, java.lang.String> foo = (Function<Supplier<String>, String>) (<no type> s) -> s.get();
    final @val java.lang.String foo2 = foo.apply(() -> {
  final @val java.lang.String bar = "";
  return bar;
});
  }
}