Skip to content

Commit cfd3ab3

Browse files
committed
Fix warning of generics
1 parent 9de63f8 commit cfd3ab3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/schabi/newpipe/extractor/ListExtractor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)