aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValLessSimple.java
blob: 31f8030d62f7e8a017f2136c75ca397530af4f9a (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
import lombok.val;

public class ValLessSimple {
	private short field2 = 5;
	
	private String method() {
		return "method";
	}
	
	private double method2() {
		return 2.0;
	}
	
	{
		System.out.println("Hello");
		val z = 20;
		val x = 10;
		val a = z;
		val y = field2;
	}
	
	private void testVal(String param) {
		val fieldV = field;
		val a = 10;
		val b = 20;
		{
			val methodV = method();
			val foo = fieldV + methodV;
		}
	}
	
	private String field = "field";
}