diff options
author | Shawn Pearce <spearce@spearce.org> | 2016-01-12 16:11:36 -0800 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2016-01-12 19:30:32 -0500 |
commit | 4e650c0d76b716c0e9cb3592d30def9e609066c1 (patch) | |
tree | d7c78175d48110c50626513d10eded3fdbf91362 /org.eclipse.jgit.junit/src/org | |
parent | 40051505d7aaccfe2efaf5f3022f1d99a3976554 (diff) | |
download | jgit-4e650c0d76b716c0e9cb3592d30def9e609066c1.tar.gz jgit-4e650c0d76b716c0e9cb3592d30def9e609066c1.zip |
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
Diffstat (limited to 'org.eclipse.jgit.junit/src/org')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<R extends Repository> { Set<ObjectId> all = new HashSet<ObjectId>(); for (Ref r : db.getAllRefs().values()) all.add(r.getObjectId()); - pw.preparePack(m, all, Collections.<ObjectId> emptySet()); + pw.preparePack(m, all, PackWriter.NONE); final ObjectId name = pw.computeName(); |