Style .. Any reason to prefer the other way!

On Wednesday, April 10, 2013, Andrew Phillips wrote:

> In core/src/main/java/org/jclouds/ContextBuilder.java:
>
> > @@ -415,17 +423,24 @@ static Properties resolveProperties(Properties mutable, String providerId, Set<S
> >     }
> >
> >     static void addRestContextBinding(ApiMetadata apiMetadata, List<Module> modules) {
> > -      if (apiMetadata instanceof RestApiMetadata) {
> > +      if (apiMetadata instanceof HttpApiMetadata) {
> > +         try {
> > +            modules
> > +                  .add(new BindApiContextWithWildcardExtendsExplicitAndRawType(HttpApiMetadata.class.cast(apiMetadata)));
>
> Any reason for the Class.cast(...) vs (Class) x preference?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/1511/files#r3729236>
> .
>