aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValOutersWithGenerics.java
blob: b4225ede969a8bc648e7b07760a89c4da4754fe5 (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
import java.util.*;
import lombok.val;
public class ValOutersWithGenerics<Z> {
  class Inner {
    Inner() {
      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>();
  }
}