Closed Samdespion closed 5 months ago
Parameter of orElse() is evaluated, even when having a non-empty Optional. orElseGet supplier method passed as an argument is only executed when an Optional value isn’t present :
https://github.com/green-code-initiative/ecoCode-challenge/issues/77
PR accepted and updated like follow :
Parameter of orElse() is evaluated, even when having a non-empty Optional. orElseGet supplier method passed as an argument is only executed when an Optional value isn’t present :
https://github.com/green-code-initiative/ecoCode-challenge/issues/77