software engineer's backlog
Friday, May 17, 2013
one more null check with Optional
Instead of
if (tipDocument.isPresent()) { return tipDocument.get(); } return null;
use
return tipDocument.orNull();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment