Try-finally statements
Author: LGTM
import csharp
from TryStmt t
where
exists(t.getFinally()) and
not exists(t.getACatchClause())
select t
Description
Finds try-finally statements without a catch clause.
import csharp
from TryStmt t
where
exists(t.getFinally()) and
not exists(t.getACatchClause())
select t
Finds try-finally statements without a catch clause.