Ferhat KUL
A Software Enginer on the way to Software Craftsmanship
Asdfasf
Home
About Me
Thursday, September 18, 2014
EJ-43 Return Empty Arrays or Collections, Not Nulls
Ref:
Effective Java by Joshua Bloch
Commonly, there is no reason to return null from an array or collection returned method which would require extra null check instead of returning empty array or collections.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment