Skip to content

Commit

Permalink
code4craft#647 remove ThreadSafe annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
code4craft committed Nov 29, 2017
1 parent b539522 commit e5db538
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -30,7 +29,6 @@
* @author [email protected] <br>
* @since 0.1.0
*/
@ThreadSafe
public class HttpClientDownloader extends AbstractDownloader {

private Logger logger = LoggerFactory.getLogger(getClass());
Expand Down
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;
Expand All @@ -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());
Expand Down
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;
Expand All @@ -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;
Expand Down
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;

Expand All @@ -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>();
Expand Down
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;
Expand All @@ -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);
Expand Down

0 comments on commit e5db538

Please sign in to comment.