blob: e700bc5c683f1fe9dd0f441067a0a1888555fe6a (
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
|
package com.siyeh.igtest.confusing;
import java.util.ArrayList;
public class NestedMethodCallInspection extends ArrayList{
private int baz = bar(foo());
public NestedMethodCallInspection(int initialCapacity) {
super(Math.abs(initialCapacity));
}
public NestedMethodCallInspection() {
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(foo());
}
public int barangus()
{
return bar(foo()+3);
}
}
|