> +import org.jclouds.reflect.Reflection2;
> +
> +import com.google.common.collect.ImmutableMap;
> +import com.google.common.reflect.Invokable;
> +import com.google.common.reflect.TypeParameter;
> +import com.google.common.reflect.TypeResolver;
> +import com.google.common.reflect.TypeToken;
> +
> +/*
> + * FIXME: remove this class ASAP!
> + *
> + * Evil stuff, adapted from 
> https://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/reflect/TypeToken.java#236.
> + * See https://issues.apache.org/jira/browse/JCLOUDS-427 and
> + * https://code.google.com/p/guava-libraries/issues/detail?id=1635
> + */
> +public class TypeToken2<T> extends TypeToken<T> {

The reflection needed here is not fun. The 
[alternative](https://github.com/jclouds/jclouds/commit/3845710400edc4745be3755a0632c3eb5ba36681)
 is to move this class into `com.google.common.reflect`, but that confuses the 
maven-duplicate-finder plugin and isn't great either.

Curious to hear others' thoughts!

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

Reply via email to