--- jsr166/src/main/java/util/PriorityQueue.java 2003/07/28 04:11:54 1.11 +++ jsr166/src/main/java/util/PriorityQueue.java 2003/07/28 09:40:07 1.12 @@ -199,17 +199,17 @@ public class PriorityQueue extends Ab return super.add(element); } - /** - * @throws NullPointerException if any element is null. - */ - public boolean addAll(Collection c) { - return super.addAll(c); - } + // /** + // * @throws NullPointerException if any element is null. + // */ + // public boolean addAll(Collection c) { + // return super.addAll(c); + // } /** * @throws NullPointerException if the specified element is null. */ - public boolean remove(E o) { + public boolean remove(Object o) { if (o == null) throw new NullPointerException(); @@ -222,7 +222,7 @@ public class PriorityQueue extends Ab } } else { for (int i = 1; i <= size; i++) { - if (comparator.compare(queue[i], o) == 0) { + if (comparator.compare(queue[i], (E)o) == 0) { remove(i); return true; }