blob: f4961c4e3321bc848e469682b080880f8d4d4633 (
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
|
//version :9
import lombok.val;
public class ValInvalidParameter {
public void val() {
val a = a(new NonExistingClass());
val b = a(a(new NonExistingClass()));
val c = nonExisitingMethod(b(1));
val d = nonExistingObject.nonExistingMethod();
val e = b(1).nonExistingMethod();
val f = 1 > 2 ? a(new NonExistingClass()) : a(new NonExistingClass());
val g = b2(1);
val h = b2(a("a"), a(null));
val i = a(a(null));
}
public int a(String param) {
return 0;
}
public int a(Integer param) {
return 0;
}
public Integer b(int i) {
return i;
}
public Integer b2(int i, int j) {
return i;
}
}
|