mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
2d948ce3e1
These tests should fail on j6/8 as they use newer features; the test files lacked proper markings so they weren't being skipped.
32 lines
626 B
Java
32 lines
626 B
Java
//version 8: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;
|
|
}
|
|
} |