]> source.dussan.org Git - jgit.git/commitdiff
Cleanup unused import and Java 6 syntax in Archive 54/9154/2
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 6 Dec 2012 23:25:57 +0000 (00:25 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 12 Dec 2012 07:30:17 +0000 (08:30 +0100)
@Override for implementation of interface is Java 6. JGit's execution
environment is still Java 5.

Change-Id: I48d10b3bf81a60938da86e026053b2f3d5e24ad3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java

index 4a5bf1c5544454b4fcef0c4d3d1b2ea3b9593a2e..b886be853742c9171372d300903794e2b4ba2768 100644 (file)
@@ -51,7 +51,6 @@ import java.util.EnumMap;
 import java.util.Map;
 import java.text.MessageFormat;
 
-import org.apache.commons.compress.archivers.ArchiveEntry;
 import org.apache.commons.compress.archivers.ArchiveOutputStream;
 import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
 import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
@@ -129,12 +128,10 @@ class Archive extends TextBuiltin {
        static {
                Map<Format, Archiver> fmts = new EnumMap<Format, Archiver>(Format.class);
                fmts.put(Format.ZIP, new Archiver() {
-                       @Override
                        public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
                                return new ZipArchiveOutputStream(s);
                        }
 
-                       @Override
                        public void putEntry(String path, FileMode mode, //
                                        ObjectLoader loader, ArchiveOutputStream out) //
                                        throws IOException {
@@ -154,12 +151,10 @@ class Archive extends TextBuiltin {
                        }
                });
                fmts.put(Format.TAR, new Archiver() {
-                       @Override
                        public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
                                return new TarArchiveOutputStream(s);
                        }
 
-                       @Override
                        public void putEntry(String path, FileMode mode, //
                                        ObjectLoader loader, ArchiveOutputStream out) //
                                        throws IOException {