public boolean canBypassConvert ( TypeDescriptor sourceType , TypeDescriptor targetType ) { Assert . notNull ( targetType , "The targetType to convert to cannot be null" ) ; if ( sourceType == null ) { return true ; } GenericConverter converter = getConverter ( sourceType , targetType ) ; return ( converter == NO_OP_CONVERTER ) ; }
Returns true if conversion between the sourceType and targetType can be bypassed . More precisely this method will return true if objects of sourceType can be converted to the targetType by returning the source object unchanged .