fixes
This commit is contained in:
@@ -55,7 +55,7 @@ public class SortedListPriorityQueue<K,V> implements PriorityQueue<K,V> {
|
||||
data.addFirst(t);
|
||||
return t;
|
||||
} else {
|
||||
Iterator<Position<MyEntry<K, V>>> itp = data.positions();
|
||||
Iterator<Position<MyEntry<K, V>>> itp = data.positions().iterator();
|
||||
int status;
|
||||
Position<MyEntry<K, V>> temp_pos = null;
|
||||
for (; itp.hasNext(); ) {
|
||||
|
||||
@@ -43,7 +43,7 @@ public class UnsortedListPriorityQueue<K,V> implements PriorityQueue<K,V> {
|
||||
if (isEmpty()){
|
||||
throw new EmptyPriorityQueueException();
|
||||
} else {
|
||||
Iterator<Position<MyEntry<K, V>>> itp = data.positions();
|
||||
Iterator<Position<MyEntry<K, V>>> itp = data.positions().iterator();
|
||||
int status;
|
||||
Position<MyEntry<K, V>> min = null;
|
||||
Position<MyEntry<K, V>> temp_pos = null;
|
||||
@@ -83,7 +83,7 @@ public class UnsortedListPriorityQueue<K,V> implements PriorityQueue<K,V> {
|
||||
if (isEmpty()){
|
||||
throw new EmptyPriorityQueueException();
|
||||
} else {
|
||||
Iterator<Position<MyEntry<K, V>>> itp = data.positions();
|
||||
Iterator<Position<MyEntry<K, V>>> itp = data.positions().iterator();
|
||||
int status;
|
||||
Position<MyEntry<K, V>> min = null;
|
||||
Position<MyEntry<K, V>> temp_pos = null;
|
||||
|
||||
Reference in New Issue
Block a user