@ Deprecated public static Class < ? > getRawType ( Type type ) { if ( type instanceof Class ) { return ( Class < ? > ) type ; } else if ( type instanceof ParameterizedType ) { return getRawType ( ( ( ParameterizedType ) type ) . getRawType ( ) ) ; } else if ( type instanceof TypeVariable < ? > ) { return getRawType ( ( ( TypeVariable < ? > ) type ) . getBounds ( ) [ 0 ] ) ; } throw new IllegalStateException ( "unknown type: " + type ) ; }
Given a type this method resolves the corresponding raw type .