diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-10 22:20:08 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-10 22:20:08 +0100 |
commit | 40b76b50462ac2a3d25b29eb4a8d28298a474efa (patch) | |
tree | 5e9090e40a8d020d48c27dea84f093af5a9ed7bc /test/transform/resource/before | |
parent | c8774389e7cb73e494267af3a87f70c7497b220a (diff) | |
parent | 632027249b813bfabd457c07ebc89c4456e8175d (diff) | |
download | lombok-40b76b50462ac2a3d25b29eb4a8d28298a474efa.tar.gz lombok-40b76b50462ac2a3d25b29eb4a8d28298a474efa.tar.bz2 lombok-40b76b50462ac2a3d25b29eb4a8d28298a474efa.zip |
Merge branch 'fixDelombok'
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 |