mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
18 lines
312 B
Plaintext
18 lines
312 B
Plaintext
/**
|
|
* @id java/examples/tryfinally
|
|
* @name Try-finally statements
|
|
* @description Finds try-finally statements without a catch clause
|
|
* @tags try
|
|
* finally
|
|
* catch
|
|
* exceptions
|
|
*/
|
|
|
|
import java
|
|
|
|
from TryStmt t
|
|
where
|
|
exists(t.getFinally()) and
|
|
not exists(t.getACatchClause())
|
|
select t
|