mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 05:05:31 +03:00
Merge pull request #6345 from nextcloud/usbr
fix USBR_UNNECESSARY_STORE_BEFORE_RETURN
This commit is contained in:
commit
83d4aaf1ab
3 changed files with 4 additions and 3 deletions
|
@ -1 +1 @@
|
|||
357
|
||||
356
|
|
@ -31,6 +31,7 @@ import java.util.NoSuchElementException;
|
|||
import androidx.core.util.Consumer;
|
||||
import androidx.core.util.ObjectsCompat;
|
||||
import androidx.core.util.Supplier;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
|
||||
/**
|
||||
|
@ -84,6 +85,7 @@ public final class Optional<T> {
|
|||
*/
|
||||
public static<T> Optional<T> empty() {
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressFBWarnings("USBR_UNNECESSARY_STORE_BEFORE_RETURN")
|
||||
Optional<T> t = (Optional<T>) EMPTY;
|
||||
return t;
|
||||
}
|
||||
|
|
|
@ -623,8 +623,7 @@ class ContactListAdapter extends RecyclerView.Adapter<ContactListFragment.Contac
|
|||
}
|
||||
return intArray;
|
||||
} else {
|
||||
intArray = new int[0];
|
||||
return intArray;
|
||||
return new int[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue