Do you think that this is code:
@Inject
TypeReferences typeRef;
[...]
JvmParameterizedTypeReference typeReference = ... ;
JvmParameterizedTypeReference typeReference2 = ... ;
if(typeRef.isInstanceOf(typeReference, Class.forName(typeReference2.getType().getIdentifier()))) { [...] }
do the smae thing as:
@Inject
IAssignabilityComputer typeComp;
[...]
JvmParameterizedTypeReference typeReference = ... ;
JvmParameterizedTypeReference typeReference2 = ... ;
if(typeComp.isAssignableFrom(typeReference, typeReference2)) { [...] }
?