blob: d06c66ec737d3aa30bd36d85bf58959667d10b83 (
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
|
public class ValLessSimple {
private short field2 = 5;
private String method() {
return "method";
}
private double method2() {
return 2.0;
}
{
System.out.println("Hello");
final int z = 20;
final int x = 10;
final int a = z;
final short y = field2;
}
private void testVal(String param) {
final java.lang.String fieldV = field;
final int a = 10;
final int b = 20;
{
final java.lang.String methodV = method();
final java.lang.String foo = fieldV + methodV;
}
}
private void testValInCatchBlock() {
try {
final int x = 1 / 0;
} catch (ArithmeticException e) {
final int y = 0;
}
}
private String field = "field";
}
|