Type genType = clazz.getGenericSuperclass(); Type [] params = ((ParameterizedType) genType).getActualTypeArguments(); return (Class) params[0];
Type genType = clazz.getGenericSuperclass(); Type [] params = ((ParameterizedType) genType).getActualTypeArguments(); return (Class) params[0];