From b041b355d64cf0c3ec17f360a1cee27a8fe0ea3f Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 2 Apr 2012 20:47:33 +0200 Subject: Added tests for issue 358 --- test/transform/resource/before/ValOutersWithGenerics.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/ValOutersWithGenerics.java b/test/transform/resource/before/ValOutersWithGenerics.java index 145f812c..1b29d37c 100644 --- a/test/transform/resource/before/ValOutersWithGenerics.java +++ b/test/transform/resource/before/ValOutersWithGenerics.java @@ -2,9 +2,13 @@ import java.util.*; import lombok.val; public class ValOutersWithGenerics { + class Inner { } + class InnerWithGenerics { + } + public void testOutersWithGenerics() { val foo = ""; List list = new ArrayList(); @@ -17,10 +21,21 @@ public class ValOutersWithGenerics { val q = new Local(); } + public static void test() { + val outer = new ValOutersWithGenerics(); + val inner1 = outer.new Inner(); + val inner2 = outer.new InnerWithGenerics(); + } + static class SubClass extends ValOutersWithGenerics { public void testSubClassOfOutersWithGenerics() { List list = new ArrayList(); val elem = list.get(0); } } + + public static void loop(Map map) { + for (val e : map.entrySet()) { + } + } } -- cgit