|
|
|
|
|
by stickfigure
3031 days ago
|
|
Eh? There's a lot of information here, even without familiarity with the code (and really, most people have at least a partial understanding of the codebases they work on). I can see that the thing returned from getAccount() is an Account object! It's not an accountId, or the name of the account, or an AccountDTO, or an Optional<Account>, or any of the dozen other things I've seen people return from methods named getAccount(). Depending on how methods are named, the implicit documentation can be very helpful: Account from = transfer.getFrom();
I don't think that var is particularly evil, but I think it has a poor case for existence. Meh. |
|