public String getLiteralType ( Type type ) { String result = "" ; if ( type != null ) { if ( ParameterizedType . class . isAssignableFrom ( type . getClass ( ) ) ) { ParameterizedType parameterizedType = ( ParameterizedType ) type ; result = parameterizedType . toString ( ) ; } else { result = ( ( Class ) type ) . getCanonicalName ( ) ; } } return result ; }
Return human reading of type