File tree Expand file tree Collapse file tree
src/main/java/org/schabi/newpipe/extractor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public static class NextItemsResult {
4646 /**
4747 * The current list of items to this result
4848 */
49- public final List <InfoItem > nextItemsList ;
49+ public final List <? extends InfoItem > nextItemsList ;
5050
5151 /**
5252 * Next url to fetch more items
@@ -58,11 +58,11 @@ public static class NextItemsResult {
5858 */
5959 public final List <Throwable > errors ;
6060
61- public NextItemsResult (InfoItemCollector collector , String nextItemsUrl ) {
61+ public NextItemsResult (InfoItemCollector <? extends InfoItem , ?> collector , String nextItemsUrl ) {
6262 this (collector .getItemList (), nextItemsUrl , collector .getErrors ());
6363 }
6464
65- public NextItemsResult (List <InfoItem > nextItemsList , String nextItemsUrl , List <Throwable > errors ) {
65+ public NextItemsResult (List <? extends InfoItem > nextItemsList , String nextItemsUrl , List <Throwable > errors ) {
6666 this .nextItemsList = nextItemsList ;
6767 this .nextItemsUrl = nextItemsUrl ;
6868 this .errors = errors ;
@@ -72,7 +72,7 @@ public boolean hasMoreStreams() {
7272 return nextItemsUrl != null && !nextItemsUrl .isEmpty ();
7373 }
7474
75- public List <InfoItem > getNextItemsList () {
75+ public List <? extends InfoItem > getNextItemsList () {
7676 return nextItemsList ;
7777 }
7878
You can’t perform that action at this time.
0 commit comments