aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValAnonymousSubclassWithGenerics.java
blob: 49fc86e01d148cedf0d6ddd9cbdcfb653ee5c846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// ignore
import java.util.*;
import lombok.val;

public class ValAnonymousSubclassWithGenerics {
	Object object = new Object(){
		void foo() {
			val j = 1;
		}
	};
	
	void bar() {
		val k = super.hashCode();
		int x = k;
	}
	
	java.util.List<String> names = new java.util.ArrayList<String>() {
		public String get(int i) {
			val result = super.get(i);
			return result;
		}
	};
}