aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test2/InsertLocal.java
blob: 43794cc80439283100354c4187e90e34865a3f4e (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
package test2;

public class InsertLocal {
    public int run() {
        return (int)(foo(4, 3.14, "pai") * 100) + field;
    }

    private int field = 0;

    public double foo(int i, double d, String s) {
        int k;

        for (k = 0; k < i; k++)
            d++;

        return d;
    }

    public int run2() {
        String s = ".";
        int k = 0;
        return k + s.length();
    }

    @SuppressWarnings("unused")
    public int run3() {
        int i = 0;
        int j = field;
        int k = run2();
        InsertLocal obj = new InsertLocal();
        return i;
    }
}