]> source.dussan.org Git - jgit.git/commit
ReceivePack: Use try-with-resources for PostReceiveHook 59/152359/2
authorMasaya Suzuki <masayasuzuki@google.com>
Fri, 8 Nov 2019 03:07:57 +0000 (19:07 -0800)
committerMasaya Suzuki <masayasuzuki@google.com>
Mon, 2 Dec 2019 22:01:49 +0000 (14:01 -0800)
commit224746e0f201ae1bd8614e3c6204ee832c515578
treef1c8c807ff8b4efbc92f2b9b6a303d8321691715
parent4fcc43a1dec290e3d0986405fecd483bfc650568
ReceivePack: Use try-with-resources for PostReceiveHook

Instead of dropping a second exception, use try-with-resources so that
exception thrown by a hook is attached as a suppressed exception.

This removes a need of holding an exception that is thrown while
unpacking an incoming packfile.

Change-Id: I74d8b944931abbf53d9d1ae5db2e889639fba027
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java