]> source.dussan.org Git - jgit.git/commit
CommandCatalog: Simplify scan method using try-with-resource 91/119291/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 13 Mar 2018 06:56:47 +0000 (15:56 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 Mar 2018 21:21:35 +0000 (22:21 +0100)
commit9450a55f76461b2b6d28f332b922d6dbc3247a64
treeb9723bc719549bfab09fa81471ec5939437da026
parent7392d3b30474a9ea9eeb28a7be1590c4751bca5e
CommandCatalog: Simplify scan method using try-with-resource

The IOExceptions caught in the nested try blocks are all ignored,
so we can just wrap them all up into a single try-with-resource
block.

Change-Id: Id85850b3f54c408af73063220e6fead20cb0fd80
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java