Add missing @Deprecated annotations.

pull/1012/head
Sutra Zhou 4 years ago
parent 4e8a086dae
commit be6f5ff771

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

Loading…
Cancel
Save