Skip to content

Commit 8771af7

Browse files
committed
Restored original naming
1 parent 01cfde0 commit 8771af7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public abstract class Extractor {
3030

3131
private boolean pageFetched = false;
3232
// called like this to prevent checkstyle errors about "hiding a field"
33-
private final Downloader theDownloader;
33+
private final Downloader downloader;
3434

35-
public Extractor(final StreamingService service, final LinkHandler linkHandler) {
35+
protected Extractor(final StreamingService service, final LinkHandler linkHandler) {
3636
this.service = Objects.requireNonNull(service, "service is null");
3737
this.linkHandler = Objects.requireNonNull(linkHandler, "LinkHandler is null");
38-
this.theDownloader = Objects.requireNonNull(NewPipe.getDownloader(), "downloader is null");
38+
this.downloader = Objects.requireNonNull(NewPipe.getDownloader(), "downloader is null");
3939
}
4040

4141
/**
@@ -57,7 +57,7 @@ public void fetchPage() throws IOException, ExtractionException {
5757
if (pageFetched) {
5858
return;
5959
}
60-
onFetchPage(theDownloader);
60+
onFetchPage(downloader);
6161
pageFetched = true;
6262
}
6363

@@ -78,6 +78,7 @@ protected boolean isPageFetched() {
7878
* @throws IOException if the page can not be loaded
7979
* @throws ExtractionException if the pages content is not understood
8080
*/
81+
@SuppressWarnings("HiddenField")
8182
public abstract void onFetchPage(@Nonnull Downloader downloader)
8283
throws IOException, ExtractionException;
8384

@@ -120,7 +121,7 @@ public int getServiceId() {
120121
}
121122

122123
public Downloader getDownloader() {
123-
return theDownloader;
124+
return downloader;
124125
}
125126

126127
/*//////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)