8200728: Docs (Comparison of Stack and Deque methods) for Deque is not correct

Reviewed-by: martin, psandoz
This commit is contained in:
Doug Lea 2018-04-10 11:25:46 -07:00
parent 70e23d4ded
commit 98ede98f5a

View file

@ -141,8 +141,8 @@ package java.util;
* <p>Deques can also be used as LIFO (Last-In-First-Out) stacks. This * <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. * 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 * 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 * beginning of the deque. Stack methods are equivalent to {@code Deque}
* {@code Deque} methods as indicated in the table below: * methods as indicated in the table below:
* *
* <table class="striped"> * <table class="striped">
* <caption>Comparison of Stack and Deque methods</caption> * <caption>Comparison of Stack and Deque methods</caption>
@ -163,7 +163,7 @@ package java.util;
* </tr> * </tr>
* <tr> * <tr>
* <th scope="row">{@link #peek() peek()}</th> * <th scope="row">{@link #peek() peek()}</th>
* <td>{@link #peekFirst() peekFirst()}</td> * <td>{@link #getFirst() getFirst()}</td>
* </tr> * </tr>
* </tbody> * </tbody>
* </table> * </table>