Skip to content
Snippets Groups Projects
Commit 08648117 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Apply isEmptyList to any Collection

parent 75c93f70
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment