mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-03 23:40:30 +01:00
Use correct `NonNull
`
This commit is contained in:
parent
04e8e03d8f
commit
ad97b3d995
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user