Closed marklassau closed 1 year ago
Just a suggestion.
The status is always set exactly once - so the null value in the current code is never used.
status
Setting the variable to final ensures the invariant that it is always set exactly one time - else there will be a compiler error.
final
Just a suggestion.
The
status
is always set exactly once - so the null value in the current code is never used.Setting the variable to
final
ensures the invariant that it is always set exactly one time - else there will be a compiler error.