scolebourne 2004/01/06 13:31:32
Modified: collections/src/java/org/apache/commons/collections
BinaryHeap.java SynchronizedPriorityQueue.java
PriorityQueue.java
Removed: collections/src/java/org/apache/commons/collections
PriorityQueueUtils.java
Log:
Deprecate PriorityQueue interface - Use Buffer interface instead
Revision Changes Path
1.21 +5 -3
jakarta-commons/collections/src/java/org/apache/commons/collections/BinaryHeap.java
Index: BinaryHeap.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/BinaryHeap.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- BinaryHeap.java 5 Jan 2004 22:46:33 -0000 1.20
+++ BinaryHeap.java 6 Jan 2004 21:31:32 -0000 1.21
@@ -88,9 +88,11 @@
* to provide synchronized access to a <code>BinaryHeap</code>:
*
* <pre>
- * PriorityQueue heap = PriorityQueueUtils.synchronizedPriorityQueue(new
BinaryHeap());
+ * PriorityQueue heap = new SynchronizedPriorityQueue(new BinaryHeap());
* </pre>
*
+ * @deprecated Replaced by PriorityBuffer in buffer subpackage.
+ * Due to be removed in v4.0.
* @since Commons Collections 1.0
* @version $Revision$ $Date$
*
1.11 +5 -4
jakarta-commons/collections/src/java/org/apache/commons/collections/SynchronizedPriorityQueue.java
Index: SynchronizedPriorityQueue.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/SynchronizedPriorityQueue.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SynchronizedPriorityQueue.java 1 Jan 2004 18:57:37 -0000 1.10
+++ SynchronizedPriorityQueue.java 6 Jan 2004 21:31:32 -0000 1.11
@@ -4,7 +4,7 @@
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
+ * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -64,7 +64,8 @@
* Provides synchronized wrapper methods for all the methods
* defined in the PriorityQueue interface.
*
- * @deprecated Use PriorityQueueUtils. Due to be removed in v4.0.
+ * @deprecated PriorityQueue is replaced by the Buffer interface, see buffer
subpackage.
+ * Due to be removed in v4.0.
* @since Commons Collections 1.0
* @version $Revision$ $Date$
*
1.11 +4 -3
jakarta-commons/collections/src/java/org/apache/commons/collections/PriorityQueue.java
Index: PriorityQueue.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/PriorityQueue.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- PriorityQueue.java 5 Jan 2004 22:46:33 -0000 1.10
+++ PriorityQueue.java 6 Jan 2004 21:31:32 -0000 1.11
@@ -61,8 +61,9 @@
* Defines a collection for priority queues, which can insert, peek and pop.
* <p>
* This interface is now replaced by the <code>Buffer</code> interface.
- * It remains for backwards compatibility.
*
+ * @deprecated Replaced by the Buffer interface and implementations in buffer
subpackage.
+ * Due to be removed in v4.0.
* @since Commons Collections 1.0
* @version $Revision$ $Date$
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]