Add missing @Override annotations in org.eclipse.jgit.archive
Change-Id: I51e37ca7643da6abadbd36e9187ccb58fe713833 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
1448ec37f9
commit
30628e3b86
|
@ -64,6 +64,7 @@ public class FormatActivator implements BundleActivator {
|
||||||
* @param context
|
* @param context
|
||||||
* unused
|
* unused
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void start(BundleContext context) {
|
public void start(BundleContext context) {
|
||||||
ArchiveFormats.registerAll();
|
ArchiveFormats.registerAll();
|
||||||
}
|
}
|
||||||
|
@ -75,6 +76,7 @@ public void start(BundleContext context) {
|
||||||
* @param context
|
* @param context
|
||||||
* unused
|
* unused
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void stop(BundleContext context) {
|
public void stop(BundleContext context) {
|
||||||
ArchiveFormats.unregisterAll();
|
ArchiveFormats.unregisterAll();
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,7 @@ public final class TarFormat extends BaseFormat implements
|
||||||
private static final List<String> SUFFIXES = Collections
|
private static final List<String> SUFFIXES = Collections
|
||||||
.unmodifiableList(Arrays.asList(".tar")); //$NON-NLS-1$
|
.unmodifiableList(Arrays.asList(".tar")); //$NON-NLS-1$
|
||||||
|
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return createArchiveOutputStream(s,
|
return createArchiveOutputStream(s,
|
||||||
|
@ -77,6 +78,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
/**
|
/**
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
||||||
Map<String, Object> o) throws IOException {
|
Map<String, Object> o) throws IOException {
|
||||||
TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$
|
TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$
|
||||||
|
@ -140,6 +142,7 @@ public void putEntry(ArchiveOutputStream out,
|
||||||
out.closeArchiveEntry();
|
out.closeArchiveEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterable<String> suffixes() {
|
public Iterable<String> suffixes() {
|
||||||
return SUFFIXES;
|
return SUFFIXES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,7 @@ public final class Tbz2Format extends BaseFormat implements
|
||||||
|
|
||||||
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
||||||
|
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return createArchiveOutputStream(s,
|
return createArchiveOutputStream(s,
|
||||||
|
@ -75,6 +76,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
/**
|
/**
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
||||||
Map<String, Object> o) throws IOException {
|
Map<String, Object> o) throws IOException {
|
||||||
BZip2CompressorOutputStream out = new BZip2CompressorOutputStream(s);
|
BZip2CompressorOutputStream out = new BZip2CompressorOutputStream(s);
|
||||||
|
@ -99,6 +101,7 @@ public void putEntry(ArchiveOutputStream out,
|
||||||
tarFormat.putEntry(out, tree, path, mode, loader);
|
tarFormat.putEntry(out, tree, path, mode, loader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterable<String> suffixes() {
|
public Iterable<String> suffixes() {
|
||||||
return SUFFIXES;
|
return SUFFIXES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,7 @@ public final class TgzFormat extends BaseFormat implements
|
||||||
|
|
||||||
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
||||||
|
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return createArchiveOutputStream(s,
|
return createArchiveOutputStream(s,
|
||||||
|
@ -75,6 +76,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
/**
|
/**
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
||||||
Map<String, Object> o) throws IOException {
|
Map<String, Object> o) throws IOException {
|
||||||
GzipCompressorOutputStream out = new GzipCompressorOutputStream(s);
|
GzipCompressorOutputStream out = new GzipCompressorOutputStream(s);
|
||||||
|
@ -99,6 +101,7 @@ public void putEntry(ArchiveOutputStream out,
|
||||||
tarFormat.putEntry(out, tree, path, mode, loader);
|
tarFormat.putEntry(out, tree, path, mode, loader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterable<String> suffixes() {
|
public Iterable<String> suffixes() {
|
||||||
return SUFFIXES;
|
return SUFFIXES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,7 @@ public final class TxzFormat extends BaseFormat implements
|
||||||
|
|
||||||
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
||||||
|
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return createArchiveOutputStream(s,
|
return createArchiveOutputStream(s,
|
||||||
|
@ -75,6 +76,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
/**
|
/**
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
||||||
Map<String, Object> o) throws IOException {
|
Map<String, Object> o) throws IOException {
|
||||||
XZCompressorOutputStream out = new XZCompressorOutputStream(s);
|
XZCompressorOutputStream out = new XZCompressorOutputStream(s);
|
||||||
|
@ -99,6 +101,7 @@ public void putEntry(ArchiveOutputStream out,
|
||||||
tarFormat.putEntry(out, tree, path, mode, loader);
|
tarFormat.putEntry(out, tree, path, mode, loader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterable<String> suffixes() {
|
public Iterable<String> suffixes() {
|
||||||
return SUFFIXES;
|
return SUFFIXES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,7 @@ public final class ZipFormat extends BaseFormat implements
|
||||||
private static final List<String> SUFFIXES = Collections
|
private static final List<String> SUFFIXES = Collections
|
||||||
.unmodifiableList(Arrays.asList(".zip")); //$NON-NLS-1$
|
.unmodifiableList(Arrays.asList(".zip")); //$NON-NLS-1$
|
||||||
|
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return createArchiveOutputStream(s,
|
return createArchiveOutputStream(s,
|
||||||
|
@ -77,6 +78,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
|
||||||
/**
|
/**
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
|
||||||
Map<String, Object> o) throws IOException {
|
Map<String, Object> o) throws IOException {
|
||||||
return applyFormatOptions(new ZipArchiveOutputStream(s), o);
|
return applyFormatOptions(new ZipArchiveOutputStream(s), o);
|
||||||
|
@ -134,6 +136,7 @@ public void putEntry(ArchiveOutputStream out,
|
||||||
out.closeArchiveEntry();
|
out.closeArchiveEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterable<String> suffixes() {
|
public Iterable<String> suffixes() {
|
||||||
return SUFFIXES;
|
return SUFFIXES;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue