]> source.dussan.org Git - jgit.git/commitdiff
Drop unnecessary "throws" clauses in archive code 52/13352/2
authorJonathan Nieder <jrn@google.com>
Wed, 29 May 2013 17:45:41 +0000 (10:45 -0700)
committerJonathan Nieder <jrn@google.com>
Wed, 29 May 2013 19:35:12 +0000 (12:35 -0700)
Noticed by eclipse.

Change-Id: I730b290556066038efeaf2436de95415b175f351

org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java

index 02adb559e98eaa0cb180e9ee68e2f1bae692c83c..f2f6140256193337aa182195f70238f755f1cfba 100644 (file)
@@ -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();
        }
 }
index 788d703cf1940f5deac1b93dd5d48a68da5883d6..6104cb432da26412cdbe15eb1ad5d18523e2f263 100644 (file)
@@ -209,8 +209,7 @@ public class ArchiveCommand extends GitCommand<OutputStream> {
                setCallable(false);
        }
 
-       private <T extends Closeable>
-       OutputStream writeArchive(Format<T> fmt) throws GitAPIException {
+       private <T extends Closeable> OutputStream writeArchive(Format<T> fmt) {
                final TreeWalk walk = new TreeWalk(repo);
                try {
                        final T outa = fmt.createArchiveOutputStream(out);