aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValOutersWithGenerics.java
blob: 901ad2f7dda192fd6f5e1feadb5d3c5d703e4c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>();
		final ValOutersWithGenerics<Z>.Inner elem = list.get(0);
	}
	public void testLocalClasses() {
		class Local<A> {
		}
		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()) {
		}
	}
}