Back to Intellij Community

GroovyEmptyTryBlock

plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyEmptyTryBlock.html

2025.3-rc-2131 B
Original Source

Reports empty try blocks. Empty try blocks usually indicate coding errors.

Example:

try {
}
finally {
  close()
}