forked from code4craft/webmagic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code4craft#647 remove ThreadSafe annotation
- Loading branch information
1 parent
b539522
commit e5db538
Showing
5 changed files
with
0 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
import org.apache.commons.io.IOUtils; | ||
import org.apache.http.HttpResponse; | ||
import org.apache.http.annotation.ThreadSafe; | ||
import org.apache.http.client.methods.CloseableHttpResponse; | ||
import org.apache.http.impl.client.CloseableHttpClient; | ||
import org.apache.http.util.EntityUtils; | ||
|
@@ -30,7 +29,6 @@ | |
* @author [email protected] <br> | ||
* @since 0.1.0 | ||
*/ | ||
@ThreadSafe | ||
public class HttpClientDownloader extends AbstractDownloader { | ||
|
||
private Logger logger = LoggerFactory.getLogger(getClass()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
package us.codecraft.webmagic.pipeline; | ||
|
||
import org.apache.commons.codec.digest.DigestUtils; | ||
import org.apache.http.annotation.ThreadSafe; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import us.codecraft.webmagic.ResultItems; | ||
import us.codecraft.webmagic.Task; | ||
import us.codecraft.webmagic.utils.FilePersistentBase; | ||
|
@@ -21,7 +19,6 @@ | |
* @author [email protected] <br> | ||
* @since 0.1.0 | ||
*/ | ||
@ThreadSafe | ||
public class FilePipeline extends FilePersistentBase implements Pipeline { | ||
|
||
private Logger logger = LoggerFactory.getLogger(getClass()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package us.codecraft.webmagic.scheduler; | ||
|
||
import org.apache.http.annotation.ThreadSafe; | ||
import us.codecraft.webmagic.Request; | ||
import us.codecraft.webmagic.Task; | ||
import us.codecraft.webmagic.utils.NumberUtils; | ||
|
@@ -16,7 +15,6 @@ | |
* @author [email protected] <br> | ||
* @since 0.2.1 | ||
*/ | ||
@ThreadSafe | ||
public class PriorityScheduler extends DuplicateRemovedScheduler implements MonitorableScheduler { | ||
|
||
public static final int INITIAL_CAPACITY = 5; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package us.codecraft.webmagic.scheduler; | ||
|
||
import org.apache.http.annotation.ThreadSafe; | ||
import us.codecraft.webmagic.Request; | ||
import us.codecraft.webmagic.Task; | ||
|
||
|
@@ -15,7 +14,6 @@ | |
* @author [email protected] <br> | ||
* @since 0.1.0 | ||
*/ | ||
@ThreadSafe | ||
public class QueueScheduler extends DuplicateRemovedScheduler implements MonitorableScheduler { | ||
|
||
private BlockingQueue<Request> queue = new LinkedBlockingQueue<Request>(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package us.codecraft.webmagic.downloader; | ||
|
||
import org.apache.http.annotation.ThreadSafe; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import us.codecraft.webmagic.Page; | ||
|
@@ -16,7 +15,6 @@ | |
* @author [email protected] | ||
* @version 0.5.3 | ||
*/ | ||
@ThreadSafe | ||
public class PhantomJSDownloader extends AbstractDownloader { | ||
|
||
private static Logger logger = LoggerFactory.getLogger(PhantomJSDownloader.class); | ||
|