Skip to content

Commit e4519c5

Browse files
committed
Modify PriorityQueue constructor call to be compliant with JDK 7.
Was using a JDK 8 only constructor.
1 parent 90d2b26 commit e4519c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aima-core/src/main/java/aima/core/search/framework/QueueFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ public static <E> Queue<E> createLifoQueue() {
3434
* element comes first!
3535
*/
3636
public static <E> Queue<E> createPriorityQueue(Comparator<? super E> comparator) {
37-
return new PriorityQueue<E>(comparator);
37+
return new PriorityQueue<E>(11, comparator);
3838
}
3939
}

0 commit comments

Comments
 (0)