sob., 11 mar 2023 o 13:51 Piotr P. Karwasz <piotr.karw...@gmail.com> napisał(a):
> However I don't believe that this is the right way to go: IIRC
> `Optional.isPresent()` and `Optional.get()` should be replaced with a
> single call to `Optional.ifPresent()` whenever possible:
>
> provider.ifPresent(p -> {
>     LOG.info("Detected container provider [{}] needs to be reloaded.", p);
> });

Thanks, you are right, I can simplify the statement. Yet I still think
this would be a good idea to support unpacking Optional parameters.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

Reply via email to