summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJonathan Nieder2013-05-29 13:45:41 (EDT)
committer Jonathan Nieder2013-05-29 15:35:12 (EDT)
commitdbf8d95daacb7a4ad5fb0ace59981b6a12c2b25c (patch)
treec9df9cd6b67b367b0191b55ab924dc9dc945b386
parent679382fb201c39d3db5e37ecd42b7da37d54b947 (diff)
downloadjgit-dbf8d95daacb7a4ad5fb0ace59981b6a12c2b25c.zip
jgit-dbf8d95daacb7a4ad5fb0ace59981b6a12c2b25c.tar.gz
jgit-dbf8d95daacb7a4ad5fb0ace59981b6a12c2b25c.tar.bz2
Drop unnecessary "throws" clauses in archive coderefs/changes/52/13352/2
Noticed by eclipse. Change-Id: I730b290556066038efeaf2436de95415b175f351
-rw-r--r--org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java4
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java3
2 files changed, 3 insertions, 4 deletions
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 02adb55..f2f6140 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 788d703..6104cb4 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<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);