Re: Should the documentation state peekFirst() as equivalent to Stack's peek()?

2024-11-06 Thread Turkhan Badalov
://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/util/Deque.html Wondering when is the change supposed to take effect or does it mean the fix is not complete? Regards, Turkhan On Thu, Jul 25, 2024 at 3:57 PM Chen Liang wrote: > Hi Turkhan, this mail belongs to core-libs-dev list. I h

Integrated: 8337205: Typo in Stack vs Deque Method table in Deque specification

2024-08-07 Thread Turkhan
On Fri, 26 Jul 2024 21:06:31 GMT, Turkhan wrote: > This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an > equivalent to Stack's `peek()` method since both of them don't throw when a > collection is empty. This is not the case with the curren

Re: RFR: 8337205: Typo in Stack vs Deque Method table in Deque specification

2024-08-07 Thread Turkhan
On Wed, 7 Aug 2024 21:44:09 GMT, Chen Liang wrote: >> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an >> equivalent to Stack's `peek()` method since both of them don't throw when a >> collection is empty. This is not the case with the current `getFirst()` >> method.

Re: RFR: 8337205: Typo in Stack vs Deque Method table in Deque specification

2024-08-06 Thread Turkhan
On Tue, 6 Aug 2024 06:48:52 GMT, Per Minborg wrote: >> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an >> equivalent to Stack's `peek()` method since both of them don't throw when a >> collection is empty. This is not the case with the current `getFirst()` >> method

RFR: 8337205: Typo in Stack vs Deque Method table in Deque specification

2024-08-06 Thread Turkhan
This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an equivalent to Stack's `peek()` method since both of them don't throw when a collection is empty. This is not the case with the current `getFirst()` method. Please let me know if I have to fix something in the PR. Will ap