PackWriter: Fix warning about untyped collection

Change-Id: I44699d8ab9768844ba91f7224a7d4ee685c93ce6
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2011-02-18 16:56:54 -08:00
parent 5fc0f1043b
commit 4275c4c1cf
1 changed files with 2 additions and 2 deletions

View File

@ -1106,8 +1106,8 @@ private void findObjectsToPack(final ProgressMonitor countingMonitor,
if (have == null)
have = Collections.emptySet();
stats.interestingObjects = Collections.unmodifiableSet(new HashSet(want));
stats.uninterestingObjects = Collections.unmodifiableSet(new HashSet(have));
stats.interestingObjects = Collections.unmodifiableSet(new HashSet<ObjectId>(want));
stats.uninterestingObjects = Collections.unmodifiableSet(new HashSet<ObjectId>(have));
List<ObjectId> all = new ArrayList<ObjectId>(want.size() + have.size());
all.addAll(want);