Skip to content

Commit ad97b3d

Browse files
committed
Use correct NonNull
1 parent 04e8e03 commit ad97b3d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.content.SharedPreferences;
77

88
import androidx.annotation.DrawableRes;
9+
import androidx.annotation.NonNull;
910
import androidx.annotation.Nullable;
1011
import androidx.annotation.StringRes;
1112
import androidx.preference.PreferenceManager;
@@ -24,8 +25,6 @@
2425
import java.util.Optional;
2526
import java.util.concurrent.TimeUnit;
2627

27-
import javax.annotation.Nonnull;
28-
2928
public final class ServiceHelper {
3029
private static final StreamingService DEFAULT_FALLBACK_SERVICE = ServiceList.YouTube;
3130

@@ -135,7 +134,7 @@ public static StreamingService getSelectedService(final Context context) {
135134
}
136135
}
137136

138-
@Nonnull
137+
@NonNull
139138
public static String getNameOfServiceById(final int serviceId) {
140139
return ServiceList.all().stream()
141140
.filter(s -> s.getServiceId() == serviceId)

0 commit comments

Comments
 (0)