diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-11-11 02:03:38 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2010-11-11 02:03:38 +0100 |
commit | ddf54dcfaea71e50ae32b45785b8624b9137843b (patch) | |
tree | b43f5733c138eb9602b0db2b0f88270ce5fc633b /test/transform/resource/before | |
parent | 1c323332493148f0aaa936e668e1b0da5d09c8be (diff) | |
parent | eae3e45ae7dd965cc642d7f03b833574e974fc1b (diff) | |
download | lombok-ddf54dcfaea71e50ae32b45785b8624b9137843b.tar.gz lombok-ddf54dcfaea71e50ae32b45785b8624b9137843b.tar.bz2 lombok-ddf54dcfaea71e50ae32b45785b8624b9137843b.zip |
Merge branch 'master' into lazyinit
Conflicts:
src/core/lombok/javac/handlers/HandleGetter.java
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/ValErrors.java | 8 | ||||
-rw-r--r-- | test/transform/resource/before/ValWeirdTypes.java | 12 |
2 files changed, 16 insertions, 4 deletions
diff --git a/test/transform/resource/before/ValErrors.java b/test/transform/resource/before/ValErrors.java index 742bca6d..7c5c0a8b 100644 --- a/test/transform/resource/before/ValErrors.java +++ b/test/transform/resource/before/ValErrors.java @@ -1,9 +1,9 @@ public class ValErrors { - public void nullType() { - val a = null; - } - public void unresolvableExpression() { val c = d; } + + public void arrayInitializer() { + val e = { "foo", "bar"}; + } }
\ No newline at end of file diff --git a/test/transform/resource/before/ValWeirdTypes.java b/test/transform/resource/before/ValWeirdTypes.java index 6f6eb9db..855fb91f 100644 --- a/test/transform/resource/before/ValWeirdTypes.java +++ b/test/transform/resource/before/ValWeirdTypes.java @@ -51,4 +51,16 @@ public class ValWeirdTypes<Z> { val d = c ? a : b; java.util.RandomAccess confirm = c ? a : b; } + + public void nullType() { + val nully = null; + } + + public void testArrays() { + val intArray = new int[] {1, 2, 3}; + val multiDimArray = new Object[][] {{}}; + val copy = intArray; + val single = multiDimArray[0]; + val singleInt = copy[0]; + } }
\ No newline at end of file |