You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by an...@apache.org on 2014/01/17 18:43:43 UTC

[2/2] git commit: Changing the order of type token creation

Changing the order of type token creation


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/4cd00083
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/4cd00083
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/4cd00083

Branch: refs/heads/JCLOUDS-427
Commit: 4cd00083acb03bc3fb50e9f41fd585d9ddddad6c
Parents: 03a5471
Author: Andrew Phillips <an...@apache.org>
Authored: Fri Jan 17 12:43:32 2014 -0500
Committer: Andrew Phillips <an...@apache.org>
Committed: Fri Jan 17 12:43:32 2014 -0500

----------------------------------------------------------------------
 core/src/main/java/org/jclouds/rest/config/BinderUtils.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/4cd00083/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/jclouds/rest/config/BinderUtils.java b/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
index c845223..f2928ee 100644
--- a/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
+++ b/core/src/main/java/org/jclouds/rest/config/BinderUtils.java
@@ -145,9 +145,9 @@ public class BinderUtils {
    @SuppressWarnings({ "unchecked", "serial" })
    private static <S, A> void bindCallGetOnFutures(Binder binder, Class<S> sync, Class<A> async) {
       TypeToken<CallGetOnFuturesProvider<S, A>> token = new TypeToken<CallGetOnFuturesProvider<S, A>>() {
-      }.where(new TypeParameter<S>() {
-      }, sync).where(new TypeParameter<A>() {
-      }, async);
+      }.where(new TypeParameter<A>() {
+      }, async).where(new TypeParameter<S>() {
+      }, sync);
       binder.bind(sync).toProvider(TypeLiteral.class.cast(TypeLiteral.get(token.getType())));
    }