Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-18 Thread Roger Riggs
--Original Message- From: Stuart Marks Sent: Tuesday, April 17, 2018 5:11 AM To: Vivek Theeyarath <vivek.theeyar...@oracle.com> Cc: core-libs-dev <core-libs-dev@openjdk.java.net>; Paul Sandoz <paul.san...@oracle.com> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty Hi

Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-18 Thread Stuart Marks
Theeyarath <vivek.theeyar...@oracle.com> Cc: core-libs-dev <core-libs-dev@openjdk.java.net>; Paul Sandoz <paul.san...@oracle.com> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty Hi Vivek, Thanks for the update. In the test files, please remove the unnecessar

RE: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-17 Thread Vivek Theeyarath
-libs-dev@openjdk.java.net>; Paul Sandoz <paul.san...@oracle.com> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty Hi Vivek, Thanks for the update. In the test files, please remove the unnecessary imports of List and the various Predicate types. In most cases it's not a problem to have unne

Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-17 Thread Stuart Marks
: Stuart Marks Sent: Tuesday, April 17, 2018 5:11 AM To: Vivek Theeyarath <vivek.theeyar...@oracle.com> Cc: core-libs-dev <core-libs-dev@openjdk.java.net>; Paul Sandoz <paul.san...@oracle.com> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty Hi Vivek, Please add "@since 11&qu

RE: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-17 Thread Vivek Theeyarath
-libs-dev@openjdk.java.net>; Paul Sandoz <paul.san...@oracle.com> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty Hi Vivek, Please add "@since 11" tags to the doc comments of the four Optional*.isEmpty() methods. Regarding the tests, I don't think the various newly added tes

Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-16 Thread Stuart Marks
; core-libs-dev <core-libs-dev@openjdk.java.net> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty On 15 Apr 2018, at 11:25, Vivek Theeyarath <vivek.theeyar...@oracle.com> wrote: Hi All, Please review http://cr.openjdk.java.net/~vtheeyarath/8184693/webrev.01/ This looks o

RE: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-16 Thread Vivek Theeyarath
, 2018 6:48 PM To: Vivek Theeyarath <vivek.theeyar...@oracle.com> Cc: Remi Forax <fo...@univ-mlv.fr>; core-libs-dev <core-libs-dev@openjdk.java.net> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty > On 15 Apr 2018, at 11:25, Vivek Theeyarath <vivek.theeyar...@oracl

Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-15 Thread Chris Hegarty
OptionalInt. -Chris. > Regards > Vivek > -Original Message- > From: Vivek Theeyarath > Sent: Saturday, April 14, 2018 6:24 PM > To: Remi Forax <fo...@univ-mlv.fr> > Cc: core-libs-dev <core-libs-dev@openjdk.java.net> > Subject: RE: RFR: 8184693: (

Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-15 Thread forax
i Forax" <fo...@univ-mlv.fr>, "core-libs-dev" > <core-libs-dev@openjdk.java.net> > Envoyé: Dimanche 15 Avril 2018 12:25:09 > Objet: RE: RFR: 8184693: (opt) add Optional.isEmpty > Hi All, > Please review http://cr.openjdk.java.net/~vtheeyarath/818469

RE: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-15 Thread Vivek Theeyarath
@oracle.com> Cc: core-libs-dev <core-libs-dev@openjdk.java.net> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty Hi Vivek, OptionalInt, OptionalLong and OptionalDouble should be changed too. Rémi - Mail original - > De: "Vivek Theeyarath" <vivek.theeyar...@ora

RE: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-14 Thread Vivek Theeyarath
-libs-dev@openjdk.java.net> Subject: Re: RFR: 8184693: (opt) add Optional.isEmpty Hi Vivek, OptionalInt, OptionalLong and OptionalDouble should be changed too. Rémi - Mail original - > De: "Vivek Theeyarath" <vivek.theeyar...@oracle.com> > À: "core-libs-dev&quo

Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-14 Thread Remi Forax
Hi Vivek, the parenthesis around the lambdas in Basic.java are unnecessary Predicate isPositiveNumber = (x -> x > 0); vs Predicate isPositiveNumber = x -> x > 0; the same remark for isNegativeNumber. cheers, Rémi - Mail original - > De: "Vivek Theeyarath"

Re: RFR: 8184693: (opt) add Optional.isEmpty

2018-04-14 Thread Remi Forax
Hi Vivek, OptionalInt, OptionalLong and OptionalDouble should be changed too. Rémi - Mail original - > De: "Vivek Theeyarath" > À: "core-libs-dev" > Envoyé: Samedi 14 Avril 2018 08:22:50 > Objet: RFR: 8184693: (opt) add