Archive for October 15th, 2008
Never return Null Arrays!
October 15th, 2008 by Scott SelikoffContinuing on Jeanne’s theme of nulls, its a pet peeve of mine when I come across code that returns null arrays instead of empty arrays. The purpose of this post is to discuss some of the reasons why its a good practice to return empty arrays over null arrays, including Collection objects or typed [...]
Categories: Development Process.
Tags: array, Java/J2EE, null, NullPointerException
Comments: 7
