#64 Avoiding superfluous imports

This commit is contained in:
Gunnar Morling 2013-08-18 00:31:06 +02:00
parent 3e8ba36774
commit 4c32abbeb5

View File

@ -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() );
}