diff --git a/scripts/analysis/findbugs-results.txt b/scripts/analysis/findbugs-results.txt index 2a9c18ad50..bbce65161c 100644 --- a/scripts/analysis/findbugs-results.txt +++ b/scripts/analysis/findbugs-results.txt @@ -1 +1 @@ -357 \ No newline at end of file +356 \ No newline at end of file diff --git a/src/main/java/com/nextcloud/java/util/Optional.java b/src/main/java/com/nextcloud/java/util/Optional.java index e3a31e5c2a..b2039d3c6e 100644 --- a/src/main/java/com/nextcloud/java/util/Optional.java +++ b/src/main/java/com/nextcloud/java/util/Optional.java @@ -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 { */ public static Optional empty() { @SuppressWarnings("unchecked") + @SuppressFBWarnings("USBR_UNNECESSARY_STORE_BEFORE_RETURN") Optional t = (Optional) EMPTY; return t; } diff --git a/src/main/java/com/owncloud/android/ui/fragment/contactsbackup/ContactListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/contactsbackup/ContactListFragment.java index 781c297a99..0958093e24 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/contactsbackup/ContactListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/contactsbackup/ContactListFragment.java @@ -623,8 +623,7 @@ class ContactListAdapter extends RecyclerView.Adapter