import java.util.*; import lombok.val; public class ValOutersWithGenerics { class Inner { Inner() { super(); } } static class SubClass extends ValOutersWithGenerics { SubClass() { super(); } public void testSubClassOfOutersWithGenerics() { List list = new ArrayList(); final @val ValOutersWithGenerics.Inner elem = list.get(0); } } public ValOutersWithGenerics() { super(); } public void testOutersWithGenerics() { final @val java.lang.String foo = ""; List list = new ArrayList(); final @val ValOutersWithGenerics.Inner elem = list.get(0); } public void testLocalClasses() { class Local { Local() { super(); } } final @val Local q = new Local(); } }