Browse Source

Add missing @Override annotations in org.eclipse.jgit.archive

Change-Id: I51e37ca7643da6abadbd36e9187ccb58fe713833
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.7
Matthias Sohn 8 years ago
parent
commit
30628e3b86
  1. 2
      org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java
  2. 3
      org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java
  3. 3
      org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/Tbz2Format.java
  4. 3
      org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TgzFormat.java
  5. 3
      org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TxzFormat.java
  6. 3
      org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java

2
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java

@ -64,6 +64,7 @@ public class FormatActivator implements BundleActivator {
* @param context
* unused
*/
@Override
public void start(BundleContext context) {
ArchiveFormats.registerAll();
}
@ -75,6 +76,7 @@ public class FormatActivator implements BundleActivator {
* @param context
* unused
*/
@Override
public void stop(BundleContext context) {
ArchiveFormats.unregisterAll();
}

3
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java

@ -68,6 +68,7 @@ public final class TarFormat extends BaseFormat implements
private static final List<String> SUFFIXES = Collections
.unmodifiableList(Arrays.asList(".tar")); //$NON-NLS-1$
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
throws IOException {
return createArchiveOutputStream(s,
@ -77,6 +78,7 @@ public final class TarFormat extends BaseFormat implements
/**
* @since 4.0
*/
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
Map<String, Object> o) throws IOException {
TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$
@ -140,6 +142,7 @@ public final class TarFormat extends BaseFormat implements
out.closeArchiveEntry();
}
@Override
public Iterable<String> suffixes() {
return SUFFIXES;
}

3
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/Tbz2Format.java

@ -66,6 +66,7 @@ public final class Tbz2Format extends BaseFormat implements
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
throws IOException {
return createArchiveOutputStream(s,
@ -75,6 +76,7 @@ public final class Tbz2Format extends BaseFormat implements
/**
* @since 4.0
*/
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
Map<String, Object> o) throws IOException {
BZip2CompressorOutputStream out = new BZip2CompressorOutputStream(s);
@ -99,6 +101,7 @@ public final class Tbz2Format extends BaseFormat implements
tarFormat.putEntry(out, tree, path, mode, loader);
}
@Override
public Iterable<String> suffixes() {
return SUFFIXES;
}

3
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TgzFormat.java

@ -66,6 +66,7 @@ public final class TgzFormat extends BaseFormat implements
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
throws IOException {
return createArchiveOutputStream(s,
@ -75,6 +76,7 @@ public final class TgzFormat extends BaseFormat implements
/**
* @since 4.0
*/
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
Map<String, Object> o) throws IOException {
GzipCompressorOutputStream out = new GzipCompressorOutputStream(s);
@ -99,6 +101,7 @@ public final class TgzFormat extends BaseFormat implements
tarFormat.putEntry(out, tree, path, mode, loader);
}
@Override
public Iterable<String> suffixes() {
return SUFFIXES;
}

3
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TxzFormat.java

@ -66,6 +66,7 @@ public final class TxzFormat extends BaseFormat implements
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
throws IOException {
return createArchiveOutputStream(s,
@ -75,6 +76,7 @@ public final class TxzFormat extends BaseFormat implements
/**
* @since 4.0
*/
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
Map<String, Object> o) throws IOException {
XZCompressorOutputStream out = new XZCompressorOutputStream(s);
@ -99,6 +101,7 @@ public final class TxzFormat extends BaseFormat implements
tarFormat.putEntry(out, tree, path, mode, loader);
}
@Override
public Iterable<String> suffixes() {
return SUFFIXES;
}

3
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java

@ -68,6 +68,7 @@ public final class ZipFormat extends BaseFormat implements
private static final List<String> SUFFIXES = Collections
.unmodifiableList(Arrays.asList(".zip")); //$NON-NLS-1$
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s)
throws IOException {
return createArchiveOutputStream(s,
@ -77,6 +78,7 @@ public final class ZipFormat extends BaseFormat implements
/**
* @since 4.0
*/
@Override
public ArchiveOutputStream createArchiveOutputStream(OutputStream s,
Map<String, Object> o) throws IOException {
return applyFormatOptions(new ZipArchiveOutputStream(s), o);
@ -134,6 +136,7 @@ public final class ZipFormat extends BaseFormat implements
out.closeArchiveEntry();
}
@Override
public Iterable<String> suffixes() {
return SUFFIXES;
}

Loading…
Cancel
Save