mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-06 10:09:16 +00:00
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:
parent
30748db1e2
commit
b5f66526a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user