mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 04:16:19 +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,25 @@
|
||||
//ignore
|
||||
import lombok.val;
|
||||
public class ValSimple {
|
||||
private String field = "field";
|
||||
private short field2 = 5;
|
||||
public ValSimple() {
|
||||
super();
|
||||
}
|
||||
private String method() {
|
||||
return "method";
|
||||
}
|
||||
private double method2() {
|
||||
return 2.0;
|
||||
}
|
||||
private void testVal(String param) {
|
||||
final @val java.lang.String fieldV = field;
|
||||
final @val java.lang.String methodV = method();
|
||||
final @val java.lang.String paramV = param;
|
||||
final @val java.lang.String valOfVal = fieldV;
|
||||
final @val java.lang.String operatorV = (fieldV + valOfVal);
|
||||
final @val short fieldW = field2;
|
||||
final @val double methodW = method2();
|
||||
byte localVar = 3;
|
||||
final @val int operatorW = (fieldW + localVar);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user