Browse Source

Fix hidden field warning

Change-Id: Ic52527c32f8167db3c7bb7fa0297c86fee21da27
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-2.2
Matthias Sohn 12 years ago
parent
commit
bf0dc41362
  1. 6
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java

6
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java

@ -82,7 +82,7 @@ class Archive extends TextBuiltin {
final ObjectReader reader = walk.getObjectReader(); final ObjectReader reader = walk.getObjectReader();
final MutableObjectId idBuf = new MutableObjectId(); final MutableObjectId idBuf = new MutableObjectId();
final Archiver fmt = formats.get(format); final Archiver fmt = formats.get(format);
final ArchiveOutputStream out = fmt.createArchiveOutputStream(outs); final ArchiveOutputStream outa = fmt.createArchiveOutputStream(outs);
if (tree == null) if (tree == null)
throw die(CLIText.get().treeIsRequired); throw die(CLIText.get().treeIsRequired);
@ -100,10 +100,10 @@ class Archive extends TextBuiltin {
continue; continue;
walk.getObjectId(idBuf, 0); 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) { static private void warnArchiveEntryModeIgnored(String name) {

Loading…
Cancel
Save