Add missing @Deprecated annotations.

master
Sutra Zhou 2021-03-22 18:18:42 +08:00
parent 4e8a086dae
commit be6f5ff771
1 changed files with 4 additions and 2 deletions

View File

@ -208,6 +208,7 @@ public class Spider implements Runnable, Task {
* @see #addPipeline(us.codecraft.webmagic.pipeline.Pipeline)
* @deprecated
*/
@Deprecated
public Spider pipeline(Pipeline pipeline) {
return addPipeline(pipeline);
}
@ -258,6 +259,7 @@ public class Spider implements Runnable, Task {
* @see #setDownloader(us.codecraft.webmagic.downloader.Downloader)
* @deprecated
*/
@Deprecated
public Spider downloader(Downloader downloader) {
return setDownloader(downloader);
}