java.util code cleanup

This commit is contained in:
Joel Dice
2008-02-28 15:18:46 -07:00
parent e93ea33f82
commit 51a731847a
6 changed files with 8 additions and 28 deletions

View File

@ -15,7 +15,7 @@ public class HashSet<T> implements Set<T> {
private final HashMap<T, Object> map;
public HashSet(Collection<T> c) {
public HashSet(Collection<? extends T> c) {
map = new HashMap(c.size());
addAll(c);
}