summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/exceptionHandling/ThreadDeathRethrownInspection.java
blob: 1a262c8759b05108f7a19dec4c15a09af866cca9 (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
package com.siyeh.igtest.exceptionHandling;

public class ThreadDeathRethrownInspection
{
    public void foo()
    {
        try
        {
            System.out.println("foo");
        }
        catch(ThreadDeath e)
        {
            e.printStackTrace();
        }

        try
        {
            System.out.println("foo");
        }
        catch(ThreadDeath e)
        {
            e.printStackTrace();
            throw e;
        }
    }
}