Commit 08648117 authored by Geoffrey Métais's avatar Geoffrey Métais

Apply isEmptyList to any Collection

parent 75c93f70
......@@ -35,7 +35,7 @@ import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.AbstractCollection;
import java.util.Collection;
import java.util.List;
public class Util {
......@@ -84,7 +84,7 @@ public class Util {
return false;
}
public static boolean isListEmpty(@Nullable AbstractCollection collection) {
public static boolean isListEmpty(@Nullable Collection collection) {
return collection == null || collection.isEmpty();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment