Browse Source

GC: Remove redundant type arguments

Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com>
Change-Id: Id3281a744b08f9d7b2b60f69b4e461b053ac5d02
stable-4.11
Hector Caballero 7 years ago
parent
commit
049417d504
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java

4
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java

@ -313,7 +313,7 @@ public class GC {
packRefs(); packRefs();
// TODO: implement reflog_expire(pm, repo); // TODO: implement reflog_expire(pm, repo);
Collection<PackFile> newPacks = repack(); Collection<PackFile> newPacks = repack();
prune(Collections.<ObjectId> emptySet()); prune(Collections.emptySet());
// TODO: implement rerere_gc(pm); // TODO: implement rerere_gc(pm);
return newPacks; return newPacks;
} }
@ -999,7 +999,7 @@ public class GC {
List<ReflogEntry> rlEntries = reflogReader List<ReflogEntry> rlEntries = reflogReader
.getReverseEntries(); .getReverseEntries();
if (rlEntries == null || rlEntries.isEmpty()) if (rlEntries == null || rlEntries.isEmpty())
return Collections.<ObjectId> emptySet(); return Collections.emptySet();
Set<ObjectId> ret = new HashSet<>(); Set<ObjectId> ret = new HashSet<>();
for (ReflogEntry e : rlEntries) { for (ReflogEntry e : rlEntries) {
if (e.getWho().getWhen().getTime() < minTime) if (e.getWho().getWhen().getTime() < minTime)

Loading…
Cancel
Save