changeset 49706:82d3fa5303e0

8200728: Docs (Comparison of Stack and Deque methods) for Deque is not correct Reviewed-by: martin, psandoz
author dl
date Tue, 10 Apr 2018 11:25:46 -0700
parents a0f22265e29c
children 79d2c9da2c26
files src/java.base/share/classes/java/util/Deque.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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>