]> source.dussan.org Git - jgit.git/commit
Don't unnecessarily explicitly call CorruptObjectException#initCause 57/114357/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 19 Dec 2017 02:37:08 +0000 (11:37 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 19 Dec 2017 14:27:53 +0000 (23:27 +0900)
commit0f1c160aa7302266136389c4e7b2ece30fc38675
treedceef5f025a225d7c4be3b51293a04c45a5fbf53
parent365c6cb3874ab8f284f49aba21df2a2900297872
Don't unnecessarily explicitly call CorruptObjectException#initCause

CorruptObjectException has a constructor that takes Throwable and
calls initCause with it.  Use that instead of instantiating the
exception and explicitly calling initCause.

Change-Id: I1f2747d6c4cc5249e93401b9787eb4ceb50cb995
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackInserter.java