mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#180 fix
This commit is contained in:
parent
828cc24650
commit
a15cf08d24
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user