[Android] Apply isEmptyList to any Collection

Geoffrey Métais git at videolan.org
Tue Jun 14 15:42:26 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jun 14 15:41:28 2016 +0200| [086481177c0bb5f7421e05295d0eed17a9e80645] | committer: Geoffrey Métais

Apply isEmptyList to any Collection

> https://code.videolan.org/videolan/vlc-android/commit/086481177c0bb5f7421e05295d0eed17a9e80645
---

 vlc-android/src/org/videolan/vlc/util/Util.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/Util.java b/vlc-android/src/org/videolan/vlc/util/Util.java
index b1679b2..6c0a910 100644
--- a/vlc-android/src/org/videolan/vlc/util/Util.java
+++ b/vlc-android/src/org/videolan/vlc/util/Util.java
@@ -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();
     }
 



More information about the Android mailing list