summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/typeMigration/t130/after/test.java
blob: 67ed3db2315a16edd2792886543ce50b7cd88270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Test {
    static class E extends Exception { }
    static interface I { void i(); }
    static class E1 extends E implements I { public void i() { } }
    static class E2 extends E implements I { public void i() { } }

    void m(boolean f) {
        try {
            if (f)
                throw new E1();
            else
                throw new E2();
        } catch (E e) {
            e.printStackTrace();
            e.i();
        }
    }
}