diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java index 02adb559e..f2f614025 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java +++ b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java @@ -56,11 +56,11 @@ import org.osgi.framework.BundleContext; * leaks). */ public class FormatActivator implements BundleActivator { - public void start(BundleContext context) throws Exception { + public void start(BundleContext context) { ArchiveFormats.registerAll(); } - public void stop(BundleContext context) throws Exception { + public void stop(BundleContext context) { ArchiveFormats.unregisterAll(); } } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java index 788d703cf..6104cb432 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java @@ -209,8 +209,7 @@ public class ArchiveCommand extends GitCommand { setCallable(false); } - private - OutputStream writeArchive(Format fmt) throws GitAPIException { + private OutputStream writeArchive(Format fmt) { final TreeWalk walk = new TreeWalk(repo); try { final T outa = fmt.createArchiveOutputStream(out);