Guard variable and being effectively final
Dimitris Paltatzidis
dcrystalmails at gmail.com
Sun May 22 13:47:56 UTC 2022
>
> the local variable is assigned once that why i think this code should compile.
>
>
Agree.
PS: in your code with an Optional, you should use orElseGet()
Nice catch!
More information about the amber-dev
mailing list