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

2024-08-07 Thread Chen Liang
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 current `getFirst()` > method. > >

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

2024-08-07 Thread duke
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 current `getFirst()` > method. > >

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

2024-08-07 Thread Chen Liang
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 current `getFirst()` > method. > >

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-07 Thread Chen Liang
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 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

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

2024-08-06 Thread Per Minborg
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 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