summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/typeMigration/t01/before/test.java
blob: 1f7a52e4aa63a6615d911264338744e6a311abe2 (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

/**
 * Created by IntelliJ IDEA.
 * User: db
 * Date: Oct 16, 2004
 * Time: 10:10:35 PM
 * To change this template use File | Settings | File Templates.
 */

class Foo {
    Moo moo(int i) {
        return null;
    }
}

class Moo {
    Foo foo(Integer[] j) {
        return null;
    }
}

class P {
    int f(int y) {
        return y;
    }
}

class G extends P {
    int f(int y) {
        return y;
    }
}

public class Test {
    Moo g(Moo i) {
        Foo j = i.foo(new Integer[0]);
        return null;
    }
}