aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValOutersWithGenerics.java
blob: da16e7f87d7aeab90bec9c46686489010423a0dd (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import java.util.*;
import lombok.val;
public class ValOutersWithGenerics<Z> {
  class Inner {
    Inner() {
      super();
    }
  }
  class InnerWithGenerics<H> {
    InnerWithGenerics() {
      super();
    }
  }
  static class SubClass extends ValOutersWithGenerics<String> {
    SubClass() {
      super();
    }
    public void testSubClassOfOutersWithGenerics() {
      List<Inner> list = new ArrayList<Inner>();
      final @val ValOutersWithGenerics<java.lang.String>.Inner elem = list.get(0);
    }
  }
  public ValOutersWithGenerics() {
    super();
  }
  public void testOutersWithGenerics() {
    final @val java.lang.String foo = "";
    List<Inner> list = new ArrayList<Inner>();
    final @val ValOutersWithGenerics<Z>.Inner elem = list.get(0);
  }
  public void testLocalClasses() {
    class Local<A> {
      Local() {
        super();
      }
    }
    final @val Local<java.lang.String> q = new Local<String>();
  }
  public static void test() {
    final @val ValOutersWithGenerics<java.lang.String> outer = new ValOutersWithGenerics<String>();
    final @val ValOutersWithGenerics<java.lang.String>.Inner inner1 = outer.new Inner();
    final @val ValOutersWithGenerics<java.lang.String>.InnerWithGenerics<java.lang.Integer> inner2 = outer.new InnerWithGenerics<Integer>();
  }
  public static void loop(Map<String, String> map) {
    for (final @val java.util.Map.Entry<java.lang.String, java.lang.String> e : map.entrySet()) 
      {
      }
  }
}