From 4e650c0d76b716c0e9cb3592d30def9e609066c1 Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Tue, 12 Jan 2016 16:11:36 -0800 Subject: PackWriter: Declare preparePack object sets as @NonNull Require callers to pass in valid sets for both want and have collections. Offer PackWriter.NONE as a handy constant for an empty collection for the have part of preparePack instead of null. Change-Id: Ifda4450f5e488cbfefd728382b7d30797e229217 --- org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org.eclipse.jgit.junit') diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java index c941afc786..3a4f9c7884 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java @@ -866,7 +866,7 @@ public class TestRepository { Set all = new HashSet(); for (Ref r : db.getAllRefs().values()) all.add(r.getObjectId()); - pw.preparePack(m, all, Collections. emptySet()); + pw.preparePack(m, all, PackWriter.NONE); final ObjectId name = pw.computeName(); -- cgit v1.2.3