Przeglądaj źródła

Drop unnecessary "throws" clauses in archive code

Noticed by eclipse.

Change-Id: I730b290556066038efeaf2436de95415b175f351
tags/v3.1.0.201309270735-rc1
Jonathan Nieder 11 lat temu
rodzic
commit
dbf8d95daa

+ 2
- 2
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java Wyświetl plik

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

+ 1
- 2
org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java Wyświetl plik

setCallable(false); 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); final TreeWalk walk = new TreeWalk(repo);
try { try {
final T outa = fmt.createArchiveOutputStream(out); final T outa = fmt.createArchiveOutputStream(out);

Ładowanie…
Anuluj
Zapisz