#410 Small template improvement, removing empty lines between fields

This commit is contained in:
sjaakd 2015-01-25 22:32:29 +01:00
parent 6ba04920ef
commit de18f2b1d3
5 changed files with 7 additions and 4 deletions

View File

@ -27,6 +27,8 @@ import java.lang.annotation.Target;
/** /**
* Configures the mapping between two bean types. * Configures the mapping between two bean types.
* *
* <p>Note: either @BeanMapping#resultType or @BeanMapping#qualifiedBy must be specified</p>
*
* @author Sjaak Derksen * @author Sjaak Derksen
*/ */
@Target( ElementType.METHOD ) @Target( ElementType.METHOD )

View File

@ -46,7 +46,7 @@ public class BeanMapping {
if ( !resultTypeIsDefined && beanMapping.qualifiedBy().isEmpty() ) { if ( !resultTypeIsDefined && beanMapping.qualifiedBy().isEmpty() ) {
messager.printMessage( messager.printMessage(
Diagnostic.Kind.ERROR, Diagnostic.Kind.ERROR,
"'resultType' and 'qualifiedBy' are are are undefined in @BeanMapping, " "'resultType' and 'qualifiedBy' are undefined in @BeanMapping, "
+ "define at least one of them.", + "define at least one of them.",
method method
); );

View File

@ -33,10 +33,11 @@ import ${importedType.importName};
<#nt><@includeModel object=annotation/> <#nt><@includeModel object=annotation/>
</#list> </#list>
<#lt>${accessibility.keyword} class ${name}<#if superClassName??> extends ${superClassName}</#if><#if interfaceName??> implements ${interfaceName}</#if> { <#lt>${accessibility.keyword} class ${name}<#if superClassName??> extends ${superClassName}</#if><#if interfaceName??> implements ${interfaceName}</#if> {
<#list fields as field>
<#list fields as field>
<#nt> <@includeModel object=field/> <#nt> <@includeModel object=field/>
</#list> </#list>
<#list methods as method> <#list methods as method>
<#nt> <@includeModel object=method/> <#nt> <@includeModel object=method/>
</#list> </#list>

View File

@ -65,7 +65,7 @@ public class ErroneousCollectionMappingTest {
@Diagnostic(type = EmptyItererableMappingMapper.class, @Diagnostic(type = EmptyItererableMappingMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 35, line = 35,
messageRegExp = "'dateformat' and 'qualifiedBy' are are are undefined in @IterableMapping, " messageRegExp = "'dateformat' and 'qualifiedBy' are undefined in @IterableMapping, "
+ "define at least one of them.") + "define at least one of them.")
} }
) )

View File

@ -186,7 +186,7 @@ public class QualifierTest {
@Diagnostic( type = ErroneousMovieFactoryMapper.class, @Diagnostic( type = ErroneousMovieFactoryMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 37, line = 37,
messageRegExp = "'resultType' and 'qualifiedBy' are are are undefined in @BeanMapping, " messageRegExp = "'resultType' and 'qualifiedBy' are undefined in @BeanMapping, "
+ "define at least one of them." ) + "define at least one of them." )
} }
) )