mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 18:23:13 +00:00
Added tests for issue 358
This commit is contained in:
@@ -2,9 +2,13 @@ import java.util.*;
|
||||
import lombok.val;
|
||||
|
||||
public class ValOutersWithGenerics<Z> {
|
||||
|
||||
class Inner {
|
||||
}
|
||||
|
||||
class InnerWithGenerics<H> {
|
||||
}
|
||||
|
||||
public void testOutersWithGenerics() {
|
||||
val foo = "";
|
||||
List<Inner> list = new ArrayList<Inner>();
|
||||
@@ -17,10 +21,21 @@ public class ValOutersWithGenerics<Z> {
|
||||
val q = new Local<String>();
|
||||
}
|
||||
|
||||
public static void test() {
|
||||
val outer = new ValOutersWithGenerics<String>();
|
||||
val inner1 = outer.new Inner();
|
||||
val inner2 = outer.new InnerWithGenerics<Integer>();
|
||||
}
|
||||
|
||||
static class SubClass extends ValOutersWithGenerics<String> {
|
||||
public void testSubClassOfOutersWithGenerics() {
|
||||
List<Inner> list = new ArrayList<Inner>();
|
||||
val elem = list.get(0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void loop(Map<String, String> map) {
|
||||
for (val e : map.entrySet()) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user