aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-11-10 22:19:46 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-10 22:19:46 +0100
commit632027249b813bfabd457c07ebc89c4456e8175d (patch)
treea18ebcdab6a9ba1c77d4625ef6f1fb15c8bab5ea /test/transform/resource/before
parent249566813149f8e6984561d9d2ba4e348974dc1a (diff)
downloadlombok-632027249b813bfabd457c07ebc89c4456e8175d.tar.gz
lombok-632027249b813bfabd457c07ebc89c4456e8175d.tar.bz2
lombok-632027249b813bfabd457c07ebc89c4456e8175d.zip
All tests pass! - The test framework has been updated a bit to fit with the new way delombok works.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/ValErrors.java8
-rw-r--r--test/transform/resource/before/ValWeirdTypes.java12
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