File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -906,8 +906,8 @@ private void onItemError(final Throwable exception) {
906906 //////////////////////////////////////////////////////////////////////////*/
907907
908908 @ Override
909- public void selectedFilters (final List <FilterItem > theSelectedContentFilter ,
910- final List <FilterItem > theSelectedSortFilter ) {
909+ public void selectedFilters (@ NonNull final List <FilterItem > theSelectedContentFilter ,
910+ @ NonNull final List <FilterItem > theSelectedSortFilter ) {
911911
912912 selectedContentFilter = theSelectedContentFilter ;
913913 selectedSortFilter = theSelectedSortFilter ;
Original file line number Diff line number Diff line change 1717
1818import java .util .EnumMap ;
1919import java .util .Map ;
20+ import java .util .Objects ;
2021import java .util .Optional ;
2122import java .util .concurrent .TimeUnit ;
2223
@@ -324,10 +325,11 @@ public static void initServices(final Context context) {
324325 }
325326 }
326327
327- public static String getTranslatedFilterString (final LibraryStringIds stringId ,
328- final Context context ) {
328+ public static String getTranslatedFilterString (@ NonNull final LibraryStringIds stringId ,
329+ @ NonNull final Context context ) {
329330 if (LIBRARY_STRING_ID_TO_RES_ID_MAP .containsKey (stringId )) {
330- return context .getString (LIBRARY_STRING_ID_TO_RES_ID_MAP .get (stringId ));
331+ return context .getString (
332+ Objects .requireNonNull (LIBRARY_STRING_ID_TO_RES_ID_MAP .get (stringId )));
331333 } else {
332334 return stringId .toString ();
333335 }
You can’t perform that action at this time.
0 commit comments