Try-finally statements

Author: Semmle LGTM

import java

from TryStmt t
where
  exists(t.getFinally()) and
  not exists(t.getACatchClause())
select t

Description

Finds try-finally statements without a catch clause