user
11/29/2017, 8:15 AMSingle
on line 6 and press enter. Re-format code and voilà!|
Regarding the map body itself, to me it looks fine, but if you want more visibility, instead of toOptional you could use Optional.ofNullable(it.credential.toLoginDetails())
(I guess that's what toOptional wraps).