mirror of https://github.com/apache/jclouds.git
Cleaning up checkstyle warnings caused by 5976159
Looks like the workaround for Guava 1635 will be with us for a while on 1.7.x
This commit is contained in:
parent
4804edb7e8
commit
b1a2baee62
|
@ -31,7 +31,6 @@ import org.jclouds.rest.ApiContext;
|
|||
import com.google.common.base.Objects;
|
||||
import com.google.common.base.Objects.ToStringHelper;
|
||||
import com.google.common.collect.ForwardingObject;
|
||||
import com.google.common.reflect.TypeParameter;
|
||||
import com.google.common.reflect.TypeToken;
|
||||
|
||||
/**
|
||||
|
|
|
@ -68,11 +68,11 @@ public class TypeToken2<T> extends TypeToken<T> {
|
|||
return where(typeParam1, of(typeArg1), typeParam2, of(typeArg2));
|
||||
}
|
||||
|
||||
public static abstract class TypeParameter2<T> extends TypeParameter<T> {
|
||||
public abstract static class TypeParameter2<T> extends TypeParameter<T> {
|
||||
TypeVariable<?> getTypeVariable() {
|
||||
// duplicated from TypeCapture, where it's package-private
|
||||
Type superclass = getClass().getGenericSuperclass();
|
||||
return (TypeVariable<?>) ((ParameterizedType) superclass).getActualTypeArguments()[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue