Skip to content

Commit

Permalink
TFJ-545 now clear TheadLocal map is cleared with Site Streams
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke committed Jan 28, 2011
1 parent 539ab5c commit 923f602
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import twitter4j.internal.org.json.JSONArray;
import twitter4j.internal.org.json.JSONException;
import twitter4j.internal.org.json.JSONObject;
import twitter4j.json.DataObjectFactory;
import twitter4j.json.JSONObjectType;

import java.io.BufferedReader;
Expand Down Expand Up @@ -99,6 +100,7 @@ public void run() {
line = parseLine(line);
if (line.length() > 0) {
try {
DataObjectFactoryUtil.clearThreadLocalMap();
JSONObject json = new JSONObject(line);
JSONObjectType jsonObjectType = JSONObjectType.determine(json);
if (logger.isDebugEnabled()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public void next(StreamListener[] listeners) throws TwitterException {
}

protected String parseLine(String line) {
DataObjectFactoryUtil.clearThreadLocalMap();
this.line = line;
return line;
}
Expand Down
1 change: 0 additions & 1 deletion twitter4j-core/src/main/java/twitter4j/UserStreamImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public void next(StreamListener[] listeners) throws TwitterException {
}

protected String parseLine(String line) {
DataObjectFactoryUtil.clearThreadLocalMap();
this.line = line;
return line;
}
Expand Down

0 comments on commit 923f602

Please sign in to comment.