mirror of https://github.com/apache/jclouds.git
fixed generic type switch
This commit is contained in:
parent
f283b072e9
commit
9dcaa272ec
|
@ -182,6 +182,6 @@ public abstract class RestContextBuilder<S, A> {
|
||||||
public RestContext<S, A> buildContext() {
|
public RestContext<S, A> buildContext() {
|
||||||
Injector injector = buildInjector();
|
Injector injector = buildInjector();
|
||||||
return (RestContext<S, A>) injector.getInstance(Key.get(Types.newParameterizedType(
|
return (RestContext<S, A>) injector.getInstance(Key.get(Types.newParameterizedType(
|
||||||
RestContext.class, asyncClientType, syncClientType)));
|
RestContext.class, syncClientType, asyncClientType)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue