fixed generic type switch

This commit is contained in:
Adrian Cole 2010-06-08 11:56:48 -07:00
parent f283b072e9
commit 9dcaa272ec
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
} }
} }