Browse Source

PackWriter: Fix warning about untyped collection

Change-Id: I44699d8ab9768844ba91f7224a7d4ee685c93ce6
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
stable-0.12
Shawn O. Pearce 14 years ago
parent
commit
4275c4c1cf
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java

4
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java

@ -1106,8 +1106,8 @@ public class PackWriter {
if (have == null) if (have == null)
have = Collections.emptySet(); have = Collections.emptySet();
stats.interestingObjects = Collections.unmodifiableSet(new HashSet(want)); stats.interestingObjects = Collections.unmodifiableSet(new HashSet<ObjectId>(want));
stats.uninterestingObjects = Collections.unmodifiableSet(new HashSet(have)); stats.uninterestingObjects = Collections.unmodifiableSet(new HashSet<ObjectId>(have));
List<ObjectId> all = new ArrayList<ObjectId>(want.size() + have.size()); List<ObjectId> all = new ArrayList<ObjectId>(want.size() + have.size());
all.addAll(want); all.addAll(want);

Loading…
Cancel
Save