> > On Jul 13, 2022, at 9:09 PM, Maxim Solodovnik <solomax...@gmail.com> wrote: > > try (SearchCursor searchResults = search( …);) { > ..... > } > > :)))
> On Jul 14, 2022, at 10:50 PM, Emmanuel Lécharny <elecha...@gmail.com> wrote: > > > I have updated the doco to show how to use the try-with-resource. > > Thanks ! Hey Maxim and Emmanuel, I’ll shoehorn it in with the existing connection resource, that also has to be closed. Currently it uses the finally block, which isn’t a good thing (either). Using the w/ resource way is definitely the way to go. Thanks for the help. — Shawn --------------------------------------------------------------------- To unsubscribe, e-mail: api-unsubscr...@directory.apache.org For additional commands, e-mail: api-h...@directory.apache.org