8200728: Docs (Comparison of Stack and Deque methods) for Deque is not correct
authordl
Tue, 10 Apr 2018 11:25:46 -0700
changeset 49562 82d3fa5303e0
parent 49561 a0f22265e29c
child 49563 79d2c9da2c26
8200728: Docs (Comparison of Stack and Deque methods) for Deque is not correct Reviewed-by: martin, psandoz
src/java.base/share/classes/java/util/Deque.java
--- a/src/java.base/share/classes/java/util/Deque.java	Tue Apr 10 19:46:02 2018 +0200
+++ b/src/java.base/share/classes/java/util/Deque.java	Tue Apr 10 11:25:46 2018 -0700
@@ -141,8 +141,8 @@
  * <p>Deques can also be used as LIFO (Last-In-First-Out) stacks.  This
  * interface should be used in preference to the legacy {@link Stack} class.
  * When a deque is used as a stack, elements are pushed and popped from the
- * beginning of the deque.  Stack methods are precisely equivalent to
- * {@code Deque} methods as indicated in the table below:
+ * beginning of the deque.  Stack methods are equivalent to {@code Deque}
+ * methods as indicated in the table below:
  *
  * <table class="striped">
  * <caption>Comparison of Stack and Deque methods</caption>
@@ -163,7 +163,7 @@
  *  </tr>
  *  <tr>
  *    <th scope="row">{@link #peek() peek()}</th>
- *    <td>{@link #peekFirst() peekFirst()}</td>
+ *    <td>{@link #getFirst() getFirst()}</td>
  *  </tr>
  *  </tbody>
  * </table>