Skip to content

Commit 98ede98

Browse files
author
Doug Lea
committed
8200728: Docs (Comparison of Stack and Deque methods) for Deque is not correct
Reviewed-by: martin, psandoz
1 parent 70e23d4 commit 98ede98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java.base/share/classes/java/util/Deque.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@
141141
* <p>Deques can also be used as LIFO (Last-In-First-Out) stacks. This
142142
* interface should be used in preference to the legacy {@link Stack} class.
143143
* When a deque is used as a stack, elements are pushed and popped from the
144-
* beginning of the deque. Stack methods are precisely equivalent to
145-
* {@code Deque} methods as indicated in the table below:
144+
* beginning of the deque. Stack methods are equivalent to {@code Deque}
145+
* methods as indicated in the table below:
146146
*
147147
* <table class="striped">
148148
* <caption>Comparison of Stack and Deque methods</caption>
@@ -163,7 +163,7 @@
163163
* </tr>
164164
* <tr>
165165
* <th scope="row">{@link #peek() peek()}</th>
166-
* <td>{@link #peekFirst() peekFirst()}</td>
166+
* <td>{@link #getFirst() getFirst()}</td>
167167
* </tr>
168168
* </tbody>
169169
* </table>

0 commit comments

Comments
 (0)