> +import static org.jclouds.reflect.Reflection2.typeToken;
> +
> +import org.jclouds.ContextBuilder;
> +import org.jclouds.View;
> +import org.jclouds.compute.ComputeServiceContext;
> +import org.testng.annotations.Test;
> +
> +/**
> + * @author Andrew Bayer
> + */
> +@Test(groups = "unit", testName = "EC2ContextBuilderTest")
> +public class EC2ContextBuilderText {
> +   public void testAssignability() {
> +      View view = ContextBuilder.newBuilder(new 
> EC2ApiMetadata()).credentials("foo", "bar")
> +              .buildView(typeToken(ComputeServiceContext.class));
> +      view.unwrapApi(EC2Api.class);

Just wondering if leaving off the result type here might do anything to the 
type inference? I.e. would
```
EC2Api api = view.unwrapApi(EC2Api.class);
```
be any different?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/159/files#r6641269

Reply via email to