aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java
blob: 989555fc4fcd1db3b60253477b4af8c22cfb12f6 (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
import java.util.*;
import lombok.val;
public class ValAnonymousSubclassWithGenerics {
  Object object = new Object() {
    x() {
      super();
    }
    void foo() {
      final @val int j = 1;
    }
  };
  java.util.List<String> names = new java.util.ArrayList<String>() {
    x() {
      super();
    }
    public String get(int i) {
      final @val java.lang.String result = super.get(i);
      return result;
    }
  };
  public ValAnonymousSubclassWithGenerics() {
    super();
  }
  void bar() {
    final @val int k = super.hashCode();
    int x = k;
  }
}