From 30628e3b86386a7f53d7c9b14d9209ee45cdb1bb Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 18 Feb 2017 10:48:58 +0100 Subject: [PATCH] Add missing @Override annotations in org.eclipse.jgit.archive Change-Id: I51e37ca7643da6abadbd36e9187ccb58fe713833 Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/archive/FormatActivator.java | 2 ++ .../src/org/eclipse/jgit/archive/TarFormat.java | 3 +++ .../src/org/eclipse/jgit/archive/Tbz2Format.java | 3 +++ .../src/org/eclipse/jgit/archive/TgzFormat.java | 3 +++ .../src/org/eclipse/jgit/archive/TxzFormat.java | 3 +++ .../src/org/eclipse/jgit/archive/ZipFormat.java | 3 +++ 6 files changed, 17 insertions(+) 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 a6a954f78..aa4e4f500 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 @@ -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 void start(BundleContext context) { * @param context * unused */ + @Override public void stop(BundleContext context) { ArchiveFormats.unregisterAll(); } diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java index 900f024bf..c7e2583ad 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java +++ b/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 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 ArchiveOutputStream createArchiveOutputStream(OutputStream s) /** * @since 4.0 */ + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map o) throws IOException { TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$ @@ -140,6 +142,7 @@ public void putEntry(ArchiveOutputStream out, out.closeArchiveEntry(); } + @Override public Iterable suffixes() { return SUFFIXES; } diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/Tbz2Format.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/Tbz2Format.java index bba029363..5f194ecdf 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/Tbz2Format.java +++ b/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 tarFormat = new TarFormat(); + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s) throws IOException { return createArchiveOutputStream(s, @@ -75,6 +76,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s) /** * @since 4.0 */ + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map o) throws IOException { BZip2CompressorOutputStream out = new BZip2CompressorOutputStream(s); @@ -99,6 +101,7 @@ public void putEntry(ArchiveOutputStream out, tarFormat.putEntry(out, tree, path, mode, loader); } + @Override public Iterable suffixes() { return SUFFIXES; } diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TgzFormat.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TgzFormat.java index b6bf3ff66..a6d053e28 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TgzFormat.java +++ b/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 tarFormat = new TarFormat(); + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s) throws IOException { return createArchiveOutputStream(s, @@ -75,6 +76,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s) /** * @since 4.0 */ + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map o) throws IOException { GzipCompressorOutputStream out = new GzipCompressorOutputStream(s); @@ -99,6 +101,7 @@ public void putEntry(ArchiveOutputStream out, tarFormat.putEntry(out, tree, path, mode, loader); } + @Override public Iterable suffixes() { return SUFFIXES; } diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TxzFormat.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TxzFormat.java index 76d934f21..b6742acb9 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TxzFormat.java +++ b/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 tarFormat = new TarFormat(); + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s) throws IOException { return createArchiveOutputStream(s, @@ -75,6 +76,7 @@ public ArchiveOutputStream createArchiveOutputStream(OutputStream s) /** * @since 4.0 */ + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map o) throws IOException { XZCompressorOutputStream out = new XZCompressorOutputStream(s); @@ -99,6 +101,7 @@ public void putEntry(ArchiveOutputStream out, tarFormat.putEntry(out, tree, path, mode, loader); } + @Override public Iterable suffixes() { return SUFFIXES; } diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java index dfbf2ee62..7cce19702 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java +++ b/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 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 ArchiveOutputStream createArchiveOutputStream(OutputStream s) /** * @since 4.0 */ + @Override public ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map o) throws IOException { return applyFormatOptions(new ZipArchiveOutputStream(s), o); @@ -134,6 +136,7 @@ public void putEntry(ArchiveOutputStream out, out.closeArchiveEntry(); } + @Override public Iterable suffixes() { return SUFFIXES; }