Browse Source

GC: Remove redundant type arguments

Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com>
Change-Id: Id3281a744b08f9d7b2b60f69b4e461b053ac5d02
tags/v4.11.0.201803080745-r
Hector Caballero 6 years ago
parent
commit
049417d504

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java View File

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

Loading…
Cancel
Save