mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#64 Avoiding superfluous imports
This commit is contained in:
parent
3e8ba36774
commit
4c32abbeb5
@ -101,7 +101,7 @@ public class PropertyMapping extends AbstractModelElement {
|
||||
Set<Type> importTypes = new HashSet<Type>();
|
||||
importTypes.add( sourceType );
|
||||
importTypes.add( targetType );
|
||||
if ( conversion != null ) {
|
||||
if ( conversion != null && mappingMethod == null ) {
|
||||
importTypes.addAll( conversion.getImportTypes() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user