aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValLessSimple.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-11-03 00:42:58 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-03 00:42:58 +0100
commitf1cf083890c223bf7245190264438740ee724bc9 (patch)
tree769894a3fccdbd9c7d44f241f700bbc9550c653b /test/transform/resource/after-delombok/ValLessSimple.java
parentd9ba2a191ac71e7d8689f1ad0e99160b1c8dae3d (diff)
downloadlombok-f1cf083890c223bf7245190264438740ee724bc9.tar.gz
lombok-f1cf083890c223bf7245190264438740ee724bc9.tar.bz2
lombok-f1cf083890c223bf7245190264438740ee724bc9.zip
val in java, including tests and javac resolution utilities.
Diffstat (limited to 'test/transform/resource/after-delombok/ValLessSimple.java')
-rw-r--r--test/transform/resource/after-delombok/ValLessSimple.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValLessSimple.java b/test/transform/resource/after-delombok/ValLessSimple.java
new file mode 100644
index 00000000..678b419e
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValLessSimple.java
@@ -0,0 +1,26 @@
+public class ValLessSimple {
+ private short field2 = 5;
+ private String method() {
+ return "method";
+ }
+ private double method2() {
+ return 2.0;
+ }
+ {
+ System.out.println("Hello");
+ final int z = 20;
+ final int x = 10;
+ final int a = z;
+ final short y = field2;
+ }
+ private void testVal(String param) {
+ final java.lang.String fieldV = field;
+ final int a = 10;
+ final int b = 20;
+ {
+ final java.lang.String methodV = method();
+ final java.lang.String foo = fieldV + methodV;
+ }
+ }
+ private String field = "field";
+} \ No newline at end of file