Browse Source

Drop unnecessary "throws" clauses in archive code

Noticed by eclipse.

Change-Id: I730b290556066038efeaf2436de95415b175f351
stable-3.1
Jonathan Nieder 11 years ago
parent
commit
dbf8d95daa
  1. 4
      org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java
  2. 3
      org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java

4
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();
}
}

3
org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java

@ -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);

Loading…
Cancel
Save