summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-12-07 00:25:57 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2012-12-12 08:30:17 +0100
commit138a2b06c8afb41d848e1b75eff10d57e055a619 (patch)
tree4bdc00b1c572866160d757bd1067d98f09be0f62 /org.eclipse.jgit.pgm
parent76830dff4c540eed750d5cd1d7484559a4331d80 (diff)
downloadjgit-138a2b06c8afb41d848e1b75eff10d57e055a619.tar.gz
jgit-138a2b06c8afb41d848e1b75eff10d57e055a619.zip
Cleanup unused import and Java 6 syntax in Archive
@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>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java
index 4a5bf1c554..b886be8537 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java
@@ -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 {