This PR fixes two instances where try-with-resources was not yet used.
I also included some (hopefully) non-controversial fixes to minor code smells where code could be simplified or language/API features were not used consistently with the rest of the code.
Note that it's probably most useful to read the individual commits, which stick to one topic each.
This PR fixes two instances where try-with-resources was not yet used.
I also included some (hopefully) non-controversial fixes to minor code smells where code could be simplified or language/API features were not used consistently with the rest of the code.
Note that it's probably most useful to read the individual commits, which stick to one topic each.