Drop unnecessary "throws" clauses in archive code
Noticed by eclipse. Change-Id: I730b290556066038efeaf2436de95415b175f351
This commit is contained in:
parent
679382fb20
commit
dbf8d95daa
|
@ -56,11 +56,11 @@
|
||||||
* leaks).
|
* leaks).
|
||||||
*/
|
*/
|
||||||
public class FormatActivator implements BundleActivator {
|
public class FormatActivator implements BundleActivator {
|
||||||
public void start(BundleContext context) throws Exception {
|
public void start(BundleContext context) {
|
||||||
ArchiveFormats.registerAll();
|
ArchiveFormats.registerAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop(BundleContext context) throws Exception {
|
public void stop(BundleContext context) {
|
||||||
ArchiveFormats.unregisterAll();
|
ArchiveFormats.unregisterAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,8 +209,7 @@ public ArchiveCommand(Repository repo) {
|
||||||
setCallable(false);
|
setCallable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private <T extends Closeable>
|
private <T extends Closeable> OutputStream writeArchive(Format<T> fmt) {
|
||||||
OutputStream writeArchive(Format<T> fmt) throws GitAPIException {
|
|
||||||
final TreeWalk walk = new TreeWalk(repo);
|
final TreeWalk walk = new TreeWalk(repo);
|
||||||
try {
|
try {
|
||||||
final T outa = fmt.createArchiveOutputStream(out);
|
final T outa = fmt.createArchiveOutputStream(out);
|
||||||
|
|
Loading…
Reference in New Issue