summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/typeMigration/t129/before/test.java
blob: 8f2ad153d911bae0d4386b0dbe8c623f18bcff05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Test {
    static class E extends Exception { }
    static class E1 extends E { }
    static class E2 extends E { }

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