This commit is contained in:
sjaakd 2014-03-23 15:15:41 +01:00 committed by Andreas Gudian
parent 828cc24650
commit a15cf08d24

View File

@ -41,7 +41,7 @@ public class JaxbElemToValue extends BuiltInMethod {
public boolean doTypeVarsMatch(Type sourceType, Type targetType) {
boolean match = false;
if ( sourceType.getTypeParameters().size() == 1 ) {
match = sourceType.getTypeParameters().get( 0 ).equals( targetType );
match = sourceType.getTypeParameters().get( 0 ).isAssignableTo( targetType );
}
return match;
}