]> source.dussan.org Git - jgit.git/commit
Use new StoredObjectRepresentationNotAvailableException constructor 56/114356/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 19 Dec 2017 02:19:10 +0000 (11:19 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 19 Dec 2017 14:27:53 +0000 (23:27 +0900)
commit365c6cb3874ab8f284f49aba21df2a2900297872
tree524dce8795ccda8049b83276cf4805a058cd0266
parent8a6af368c4129ef35520ec72cc9f55a3f685bfb8
Use new StoredObjectRepresentationNotAvailableException constructor

In 5e7eed4 a new StoredObjectRepresentationNotAvailableException
constructor was added, that takes a Throwable to initialize the
exception cause.

Update more call sites to use this constructor instead of first
instantiating it and explicitly calling initCause().

All callers now use the new constructor, so annotate the other one as
deprecated.

Change-Id: I6d2a7e289a95f0360ddebf904cfd8b6c18fef10c
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/errors/StoredObjectRepresentationNotAvailableException.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