8200728: Docs (Comparison of Stack and Deque methods) for Deque is not correct
Reviewed-by: martin, psandoz
--- 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>