Ernest Friedman-Hill wrote:That's a generic method; the return type "T" is the type parameter for Class<T>, the first argument. I think the declaration is supposed to be
If it is a generic method, the T needs to be declared as well:
Without this, the T should be a generic type of the class itself.