From 155c6e94a3ac7d15aa71f446addc6678ec428574 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Wed, 22 Jun 2022 19:54:46 +0200 Subject: [PATCH] Use correct ``NonNull`` --- app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java b/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java index 386c1c912..b13ae4a97 100644 --- a/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java +++ b/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java @@ -6,6 +6,7 @@ import android.content.Context; import android.content.SharedPreferences; import androidx.annotation.DrawableRes; +import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.StringRes; import androidx.preference.PreferenceManager; @@ -24,8 +25,6 @@ import org.schabi.newpipe.extractor.services.peertube.PeertubeInstance; import java.util.Optional; import java.util.concurrent.TimeUnit; -import javax.annotation.Nonnull; - public final class ServiceHelper { private static final StreamingService DEFAULT_FALLBACK_SERVICE = ServiceList.YouTube; @@ -135,7 +134,7 @@ public final class ServiceHelper { } } - @Nonnull + @NonNull public static String getNameOfServiceById(final int serviceId) { return ServiceList.all().stream() .filter(s -> s.getServiceId() == serviceId)