]> source.dussan.org Git - jgit.git/commitdiff
Fix hidden field warning 77/9177/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 12 Dec 2012 07:32:11 +0000 (08:32 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 12 Dec 2012 07:32:33 +0000 (08:32 +0100)
Change-Id: Ic52527c32f8167db3c7bb7fa0297c86fee21da27
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java

index 7a2d5de75ee882078fee5165ff7b385503b79be1..963528d1060c781fecfed2dc2e51374eece84140 100644 (file)
@@ -82,7 +82,7 @@ class Archive extends TextBuiltin {
                final ObjectReader reader = walk.getObjectReader();
                final MutableObjectId idBuf = new MutableObjectId();
                final Archiver fmt = formats.get(format);
-               final ArchiveOutputStream out = fmt.createArchiveOutputStream(outs);
+               final ArchiveOutputStream outa = fmt.createArchiveOutputStream(outs);
 
                if (tree == null)
                        throw die(CLIText.get().treeIsRequired);
@@ -100,10 +100,10 @@ class Archive extends TextBuiltin {
                                continue;
 
                        walk.getObjectId(idBuf, 0);
-                       fmt.putEntry(name, mode, reader.open(idBuf), out);
+                       fmt.putEntry(name, mode, reader.open(idBuf), outa);
                }
 
-               out.close();
+               outa.close();
        }
 
        static private void warnArchiveEntryModeIgnored(String name) {