mirror of https://github.com/apache/jclouds.git
formatting
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2240 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
b3e27b15e2
commit
68edff3895
|
@ -53,8 +53,8 @@ public class TwitterContextModule extends AbstractModule {
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
@Singleton
|
@Singleton
|
||||||
RestContext<TwitterClient> provideContext(Closer closer, TwitterClient defaultApi, @Twitter URI endPoint,
|
RestContext<TwitterClient> provideContext(Closer closer, TwitterClient defaultApi,
|
||||||
@Named(TwitterConstants.PROPERTY_TWITTER_USER) String account) {
|
@Twitter URI endPoint, @Named(TwitterConstants.PROPERTY_TWITTER_USER) String account) {
|
||||||
return new RestContextImpl<TwitterClient>(closer, defaultApi, endPoint, account);
|
return new RestContextImpl<TwitterClient>(closer, defaultApi, endPoint, account);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@ import com.google.gson.annotations.SerializedName;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Adrian Cole
|
* @author Adrian Cole
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class User implements Comparable<User> {
|
public class User implements Comparable<User> {
|
||||||
@SerializedName("created_at")
|
@SerializedName("created_at")
|
||||||
|
|
|
@ -82,8 +82,8 @@ public class TwitterContextBuilderTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
private TwitterContextBuilder newBuilder() {
|
private TwitterContextBuilder newBuilder() {
|
||||||
TwitterContextBuilder builder = new TwitterContextBuilder(new TwitterPropertiesBuilder("user",
|
TwitterContextBuilder builder = new TwitterContextBuilder(new TwitterPropertiesBuilder(
|
||||||
"password").build());
|
"user", "password").build());
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue