]> source.dussan.org Git - jgit.git/commitdiff
GC: Remove redundant type arguments 80/116780/1
authorHector Caballero <hector.caballero@ericsson.com>
Tue, 30 Jan 2018 02:25:06 +0000 (21:25 -0500)
committerHector Caballero <hector.caballero@ericsson.com>
Tue, 6 Feb 2018 11:25:17 +0000 (06:25 -0500)
Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com>
Change-Id: Id3281a744b08f9d7b2b60f69b4e461b053ac5d02

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

index dce95e1fbd55bf8c2f024f1153cc833f6a6b0eeb..fd906c919277e8b52bd1b972d1753d50fb2ca9d8 100644 (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)