Use try-with-resources statement to properly close resources.
- Not all resources were closed in finally block (see Launcher, PluginManager, UpdateManager, FaviconServlet, ...) - Get rid of verbose finally blocks and empty catch blocks, which makes the code more readable. - Generally, this is the more modern approach to deal with resources.
Showing
Please register or sign in to comment