blob: 2548443e805b755831d4dff8f9329c12b123ce3d (
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
34
35
36
37
38
39
40
41
42
43
|
import java.util.ArrayList;
public class NestedMethodCall extends ArrayList{
private int baz = bar(foo());
public NestedMethodCall(int initialCapacity) {
super(Math.abs(initialCapacity));
}
public NestedMethodCall() {
this(Math.abs(3));
}
public int foo()
{
return 3;
}
public int bar(int val)
{
return 3+val;
}
public int baz()
{
bar(Math.abs(3));
return bar(<warning descr="Nested method call 'foo()'">foo</warning>());
}
public int barangus()
{
return bar(<warning descr="Nested method call 'foo()'">foo</warning>()+3);
}
private int value = 1;
public int getValue() {
return value;
}
public int apex() {
return bar(getValue());
}
}
|