Skip to content

Files

Latest commit

 

History

History
21 lines (14 loc) · 401 Bytes

SwallowThreadDeath.md

File metadata and controls

21 lines (14 loc) · 401 Bytes

Pattern: ThreadDeath without re-throw

Issue: -

Description

Detects code that catches java.lang.ThreadDeath without re-throwing it.

Example of violations:

try {
    def a = 0
} catch (ThreadDeath td) {
    td.printStackTrace()
}

Further Reading