Merge pull request #6345 from nextcloud/usbr

fix USBR_UNNECESSARY_STORE_BEFORE_RETURN
This commit is contained in:
Andy Scherzinger 2020-06-24 23:18:08 +02:00 committed by GitHub
commit 83d4aaf1ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -1 +1 @@
357
356

View file

@ -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;
}

View file

@ -623,8 +623,7 @@ class ContactListAdapter extends RecyclerView.Adapter<ContactListFragment.Contac
}
return intArray;
} else {
intArray = new int[0];
return intArray;
return new int[0];
}
}