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();
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)