rewrite
rewrite copied to clipboard
GroovyParser support for try-with-resources
Currently our GroovyParser cannot interpret this form of try-with-resources:
try(ByteArrayInputStream a = new ByteArrayInputStream("".getBytes())) {
} catch (Exception e) {
}
This form of try-catch is particularly uncommon in Groovy as it wasn't supported by the language at all until recently, so this isn't high priority. If you care about this issue I'm open to pull requests, or ping me on our community slack.