]> source.dussan.org Git - jgit.git/commit
StoredObjectRepresentationNotAvailableException: Add constructor that takes cause 89/113589/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 18 Dec 2017 05:34:13 +0000 (14:34 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 19 Dec 2017 01:40:57 +0000 (10:40 +0900)
commit5e7eed41f6273466c7dc60cee764fabc79bcd5ad
tree176e8aa0512191ddd53702d2c2a5c63dd3a4a52b
parent1e141469f18cf303f718fec7f159c885827d1420
StoredObjectRepresentationNotAvailableException: Add constructor that takes cause

If the cause can be passed into the constructor, callers don't need to
instantiate it and then explicitly call initCause.

Note that the constructors in this class cause "non-API parameter type"
warnings because ObjectToPack is internal, however it's probably OK
since the only non-internal reference to it is in the pgm.debug package.

Change-Id: Ia4eab24e79f9afe6214ea8160137d941d4048319
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