Add missing since tag.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1457661 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-03-18 07:36:51 +00:00
parent 30748db1e2
commit b5f66526a4

View File

@ -66,6 +66,7 @@ public class ListUtils {
* @param list the list, possibly {@code null}
* @param defaultList the returned values if list is {@code null}
* @return an empty list if the argument is <code>null</code>
* @since 4.0
*/
public static <T> List<T> defaultIfNull(final List<T> list, final List<T> defaultList) {
return list == null ? defaultList : list;