diff options
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/ValOutersWithGenerics.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValOutersWithGenerics.java b/test/transform/resource/after-delombok/ValOutersWithGenerics.java index 150e3a2a..901ad2f7 100644 --- a/test/transform/resource/after-delombok/ValOutersWithGenerics.java +++ b/test/transform/resource/after-delombok/ValOutersWithGenerics.java @@ -2,6 +2,8 @@ import java.util.*; public class ValOutersWithGenerics<Z> { class Inner { } + class InnerWithGenerics<H> { + } public void testOutersWithGenerics() { final java.lang.String foo = ""; List<Inner> list = new ArrayList<Inner>(); @@ -12,10 +14,19 @@ public class ValOutersWithGenerics<Z> { } final Local<java.lang.String> q = new Local<String>(); } + public static void test() { + final ValOutersWithGenerics<java.lang.String> outer = new ValOutersWithGenerics<String>(); + final ValOutersWithGenerics<java.lang.String>.Inner inner1 = outer.new Inner(); + final ValOutersWithGenerics<java.lang.String>.InnerWithGenerics<java.lang.Integer> inner2 = outer.new InnerWithGenerics<Integer>(); + } static class SubClass extends ValOutersWithGenerics<String> { public void testSubClassOfOutersWithGenerics() { List<Inner> list = new ArrayList<Inner>(); final ValOutersWithGenerics<java.lang.String>.Inner elem = list.get(0); } } + public static void loop(Map<String, String> map) { + for (final java.util.Map.Entry<java.lang.String, java.lang.String> e : map.entrySet()) { + } + } } |