Skip to content

Commit

Permalink
TFJ-613 fixes date parser bug in TrendsJSONImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke committed Jul 12, 2011
1 parent 7ee56e0 commit 718d782
Show file tree
Hide file tree
Showing 65 changed files with 287 additions and 241 deletions.
Expand Up @@ -29,7 +29,7 @@
import twitter4j.internal.http.HttpRequest;
import twitter4j.internal.http.HttpResponse;
import twitter4j.internal.logging.Logger;
import twitter4j.internal.util.T4JInternalStringUtil;
import twitter4j.internal.util.z_T4JInternalStringUtil;

import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
Expand Down Expand Up @@ -131,7 +131,7 @@ private void setHeaders(HttpRequest req, HTTPRequest request) {
String authorizationHeader;
if (req.getAuthorization() != null && (authorizationHeader = req.getAuthorization().getAuthorizationHeader(req)) != null) {
if (logger.isDebugEnabled()) {
logger.debug("Authorization: ", T4JInternalStringUtil.maskString(authorizationHeader));
logger.debug("Authorization: ", z_T4JInternalStringUtil.maskString(authorizationHeader));
}
request.setHeader(new HTTPHeader("Authorization", authorizationHeader));
}
Expand Down
Expand Up @@ -16,7 +16,13 @@

package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.AccountSettings;
import twitter4j.Location;
import twitter4j.RateLimitStatus;
import twitter4j.TimeZone;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;

/**
Expand All @@ -30,10 +36,10 @@
)
final class LazyAccountSettings implements twitter4j.AccountSettings {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private AccountSettings target = null;

LazyAccountSettings(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyAccountSettings(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,7 +16,11 @@

package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.AccountTotals;
import twitter4j.RateLimitStatus;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;

/**
Expand All @@ -30,10 +34,10 @@
)
final class LazyAccountTotals implements twitter4j.AccountTotals {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private AccountTotals target = null;

LazyAccountTotals(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyAccountTotals(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,9 +16,13 @@

package twitter4j.internal.json;

import twitter4j.*;
import javax.annotation.Generated;
import twitter4j.DirectMessage;
import twitter4j.RateLimitStatus;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;
import twitter4j.User;

import javax.annotation.Generated;
import java.util.Date;

/**
Expand All @@ -33,10 +37,10 @@
)
final class LazyDirectMessage implements twitter4j.DirectMessage {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private DirectMessage target = null;

LazyDirectMessage(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyDirectMessage(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,7 +16,11 @@

package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.IDs;
import twitter4j.RateLimitStatus;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;


Expand All @@ -32,10 +36,10 @@
)
final class LazyIDs implements twitter4j.IDs {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private IDs target = null;

LazyIDs(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyIDs(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
@@ -1,6 +1,11 @@
package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.GeoLocation;
import twitter4j.Place;
import twitter4j.RateLimitStatus;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;

/**
Expand All @@ -14,10 +19,10 @@
)
final class LazyPlace implements twitter4j.Place {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private Place target = null;

LazyPlace(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyPlace(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -17,7 +17,10 @@
// generated with generate-lazy-objects.sh
package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.QueryResult;
import twitter4j.Tweet;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import java.util.List;

Expand All @@ -28,10 +31,10 @@
*/
final class LazyQueryResult implements twitter4j.QueryResult {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private QueryResult target = null;

LazyQueryResult(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyQueryResult(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,9 +16,11 @@

package twitter4j.internal.json;

import twitter4j.*;
import javax.annotation.Generated;
import twitter4j.RateLimitStatus;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;
import java.util.Date;

/**
Expand All @@ -34,10 +36,10 @@
)
final class LazyRateLimitStatus implements twitter4j.RateLimitStatus {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private RateLimitStatus target = null;

LazyRateLimitStatus(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyRateLimitStatus(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,7 +16,13 @@

package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.RateLimitStatus;
import twitter4j.RelatedResults;
import twitter4j.ResponseList;
import twitter4j.Status;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;

/**
Expand All @@ -30,10 +36,10 @@
)
final class LazyRelatedResults implements twitter4j.RelatedResults {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private RelatedResults target = null;

LazyRelatedResults(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyRelatedResults(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,7 +16,11 @@

package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.RateLimitStatus;
import twitter4j.Relationship;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;


Expand All @@ -34,10 +38,10 @@
)
final class LazyRelationship implements twitter4j.Relationship {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private Relationship target = null;

LazyRelationship(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyRelationship(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,9 +16,12 @@

package twitter4j.internal.json;

import twitter4j.*;
import javax.annotation.Generated;
import twitter4j.RateLimitStatus;
import twitter4j.SavedSearch;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;
import java.util.Date;

/**
Expand All @@ -34,10 +37,10 @@
)
final class LazySavedSearch implements twitter4j.SavedSearch {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private SavedSearch target = null;

LazySavedSearch(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazySavedSearch(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -17,17 +17,21 @@
// generated with generate-lazy-objects.sh
package twitter4j.internal.json;

import twitter4j.*;
import twitter4j.GeoLocation;
import twitter4j.Place;
import twitter4j.ResponseList;
import twitter4j.SimilarPlaces;
import twitter4j.TwitterException;

/**
* @author Yusuke Yamamoto - yusuke at mac.com
* @since Twitter4J 2.1.7
*/
final class LazySimilarPlaces extends LazyResponseList<Place> implements SimilarPlaces {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;

LazySimilarPlaces(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazySimilarPlaces(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
super();
this.res = res;
this.factory = factory;
Expand Down
Expand Up @@ -17,8 +17,8 @@
package twitter4j.internal.json;

import twitter4j.*;
import javax.annotation.Generated;

import javax.annotation.Generated;
import java.util.Date;

/**
Expand All @@ -33,10 +33,10 @@
)
final class LazyStatus implements twitter4j.Status {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private Status target = null;

LazyStatus(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyStatus(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -16,9 +16,14 @@

package twitter4j.internal.json;

import twitter4j.*;
import javax.annotation.Generated;
import twitter4j.Location;
import twitter4j.RateLimitStatus;
import twitter4j.Trend;
import twitter4j.Trends;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import javax.annotation.Generated;
import java.util.Date;

/**
Expand All @@ -35,10 +40,10 @@
)
final class LazyTrends implements twitter4j.Trends {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private Trends target = null;

LazyTrends(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyTrends(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down
Expand Up @@ -15,10 +15,13 @@
*/
package twitter4j.internal.json;

import twitter4j.*;
import javax.annotation.Generated;
import twitter4j.MediaEntity;
import twitter4j.RateLimitStatus;
import twitter4j.TwitterAPIConfiguration;
import twitter4j.TwitterException;
import twitter4j.TwitterRuntimeException;

import java.io.Serializable;
import javax.annotation.Generated;
import java.util.Map;

/**
Expand All @@ -32,10 +35,10 @@
)
final class LazyTwitterAPIConfiguration implements twitter4j.TwitterAPIConfiguration {
private twitter4j.internal.http.HttpResponse res;
private zzzz_T4J_INTERNAL_Factory factory;
private z_T4JInternalFactory factory;
private TwitterAPIConfiguration target = null;

LazyTwitterAPIConfiguration(twitter4j.internal.http.HttpResponse res, zzzz_T4J_INTERNAL_Factory factory) {
LazyTwitterAPIConfiguration(twitter4j.internal.http.HttpResponse res, z_T4JInternalFactory factory) {
this.res = res;
this.factory = factory;
}
Expand Down

0 comments on commit 718d782

Please sign in to comment.