mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
More test files, test files updated to be valid java, and ecj test now goes through the complete compile process. This means val and @Delegate testing is now enabled.
TODO: Update -eclipse tests.
This commit is contained in:
1 parent
5e9e16a6b9
commit
06581537f2
55 files changed
+691
-132
No files matched your search
@@ -1 +1,26 @@
|
||||
//ignore
|
||||
import lombok.val;
|
||||
public class ValComplex {
|
||||
private String field = "";
|
||||
private static final int CONSTANT = 20;
|
||||
<clinit>() {
|
||||
}
|
||||
public ValComplex() {
|
||||
super();
|
||||
}
|
||||
public void testComplex() {
|
||||
final @val char[] shouldBeCharArray = field.toCharArray();
|
||||
final @val int shouldBeInt = CONSTANT;
|
||||
final @val java.lang.Object lock = new Object();
|
||||
synchronized (lock)
|
||||
{
|
||||
final @val int field = 20;
|
||||
final @val int inner = 10;
|
||||
switch (field) {
|
||||
case 5 : ;
|
||||
final @val char[] shouldBeCharArray2 = shouldBeCharArray;
|
||||
final @val int innerInner = inner;
|
||||
}
|
||||
}
|
||||
final @val java.lang.String shouldBeString = field;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user