Skip to content

Commit

Permalink
TFJ-231 fixed serializability
Browse files Browse the repository at this point in the history
git-svn-id: http://yusuke.homeip.net/svn/twitter4j/trunk@500 117b7e0d-5933-0410-9d29-ab41bb01d86b
  • Loading branch information
yusuke committed Dec 31, 2009
1 parent 86f5efd commit dc224d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/twitter4j/OAuthTwitterSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.List;

class OAuthTwitterSupport extends TwitterSupport implements HttpResponseListener, java.io.Serializable {
protected transient final HttpClientWrapper http = HttpClientWrapper.getInstance(conf, conf);
protected transient HttpClientWrapper http = HttpClientWrapper.getInstance(conf, conf);

protected List<RateLimitStatusListener> rateLimitStatusListeners = new ArrayList<RateLimitStatusListener>();
private static final long serialVersionUID = 6960663978976449394L;
Expand Down Expand Up @@ -53,6 +53,7 @@ private void writeObject(java.io.ObjectOutputStream out) throws IOException {
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
rateLimitStatusListeners = (ArrayList<RateLimitStatusListener>)stream.readObject();
http = HttpClientWrapper.getInstance(conf, conf);
http.addHttpResponseListener(this);
}
protected OAuthAuthorization getOAuth() {
Expand Down

0 comments on commit dc224d1

Please sign in to comment.