mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 02:23:38 +02:00
Build Bugsnag inline
This commit is contained in:
19
app/src/main/java/com/bugsnag/android/CollectionUtils.java
Normal file
19
app/src/main/java/com/bugsnag/android/CollectionUtils.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.bugsnag.android;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
class CollectionUtils {
|
||||
static <T> boolean containsNullElements(@Nullable Collection<T> data) {
|
||||
if (data == null) {
|
||||
return true;
|
||||
}
|
||||
for (T datum : data) {
|
||||
if (datum == null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user