blob: 5d1911da1a67d7ebdc158d7c8d713a4268409685 (
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
|
// version :9
import lombok.val;
public class ValSimple {
private String field = "field";
private short field2 = 5;
private String method() {
return "method";
}
private double method2() {
return 2.0;
}
private void testVal(String param) {
val fieldV = field;
val methodV = method();
val paramV = param;
val valOfVal = fieldV;
val operatorV = fieldV + valOfVal;
val fieldW = field2;
val methodW = method2();
byte localVar = 3;
val operatorW = fieldW + localVar;
}
}
|