aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/ValWeirdTypes.java6
-rw-r--r--test/transform/resource/after-ecj/ValWeirdTypes.java7
-rw-r--r--test/transform/resource/before/ValWeirdTypes.java8
3 files changed, 21 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValWeirdTypes.java b/test/transform/resource/after-delombok/ValWeirdTypes.java
index cd6ba538..a6bc9bd4 100644
--- a/test/transform/resource/after-delombok/ValWeirdTypes.java
+++ b/test/transform/resource/after-delombok/ValWeirdTypes.java
@@ -1,3 +1,4 @@
+import java.math.BigDecimal;
import java.util.*;
public class ValWeirdTypes<Z> {
private List<Z> fieldList;
@@ -54,4 +55,9 @@ public class ValWeirdTypes<Z> {
final java.lang.Object[] single = multiDimArray[0];
final int singleInt = copy[0];
}
+ public void arraysAsList() {
+ final java.util.List<java.lang.Class<? extends java.lang.Object>> x = Arrays.asList(String.class, BigDecimal.class);
+ for (final java.lang.Class<?> y : x) {
+ }
+ }
}
diff --git a/test/transform/resource/after-ecj/ValWeirdTypes.java b/test/transform/resource/after-ecj/ValWeirdTypes.java
index 516a3932..9f448db9 100644
--- a/test/transform/resource/after-ecj/ValWeirdTypes.java
+++ b/test/transform/resource/after-ecj/ValWeirdTypes.java
@@ -1,3 +1,4 @@
+import java.math.BigDecimal;
import java.util.*;
import lombok.val;
public class ValWeirdTypes<Z> {
@@ -61,4 +62,10 @@ public class ValWeirdTypes<Z> {
final @val java.lang.Object[] single = multiDimArray[0];
final @val int singleInt = copy[0];
}
+ public void arraysAsList() {
+ final @val java.util.List<java.lang.Class<? extends java.lang.Object>> x = Arrays.asList(String.class, BigDecimal.class);
+ for (final @val java.lang.Class<? extends java.lang.Object> y : x)
+ {
+ }
+ }
} \ No newline at end of file
diff --git a/test/transform/resource/before/ValWeirdTypes.java b/test/transform/resource/before/ValWeirdTypes.java
index 8cba2de5..4ea1b5d4 100644
--- a/test/transform/resource/before/ValWeirdTypes.java
+++ b/test/transform/resource/before/ValWeirdTypes.java
@@ -1,3 +1,4 @@
+import java.math.BigDecimal;
import java.util.*;
import lombok.val;
@@ -64,4 +65,11 @@ public class ValWeirdTypes<Z> {
val single = multiDimArray[0];
val singleInt = copy[0];
}
+
+ public void arraysAsList() {
+ val x = Arrays.asList(String.class, BigDecimal.class);
+ for (val y : x) {
+
+ }
+ }
} \ No newline at end of file