RFR: 8184693: (opt) add Optional.isEmpty

Remi Forax forax at univ-mlv.fr
Sat Apr 14 09:31:43 UTC 2018


Hi Vivek,
the parenthesis around the lambdas in Basic.java are unnecessary
  Predicate<Integer> isPositiveNumber =  (x -> x > 0);
vs
  Predicate<Integer> isPositiveNumber =  x -> x > 0;

the same remark for isNegativeNumber.

cheers,
Rémi

----- Mail original -----
> De: "Vivek Theeyarath" <vivek.theeyarath at oracle.com>
> À: "core-libs-dev" <core-libs-dev at openjdk.java.net>
> Envoyé: Samedi 14 Avril 2018 08:22:50
> Objet: RFR: 8184693: (opt) add Optional.isEmpty

> Hi All,
> 
>               Please review.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8184693
> 
> Webrev : http://cr.openjdk.java.net/~vtheeyarath/8184693/webrev.00/
> 
> 
> 
> The related jtreg test was run and the test passed .
> 
> 
> 
> Regards
> 
> Vivek


More information about the core-libs-dev mailing list