]> source.dussan.org Git - jgit.git/commit
Transport: Simplify scan method using try-with-resource 90/119290/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 13 Mar 2018 06:50:27 +0000 (15:50 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 Mar 2018 21:21:35 +0000 (22:21 +0100)
commit7392d3b30474a9ea9eeb28a7be1590c4751bca5e
tree71c7d71fb48ed7176688aaf1517251a9c2947b5d
parentda3d76f00ede01a976dbe1089f073a9c0f1c13a7
Transport: 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: I536d682f1017c5088b94ff9f98ffa2b7c783d8bf
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java