mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#343 wrongly placed candidates.clear() causes too many error messages
This commit is contained in:
parent
bcda1d25b7
commit
5bca22702e
@ -309,10 +309,9 @@ public class BeanMappingMethod extends MappingMethod {
|
|||||||
.dateFormat( mapping != null ? mapping.getDateFormat() : null )
|
.dateFormat( mapping != null ? mapping.getDateFormat() : null )
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// candidates are handled
|
|
||||||
candidates.clear();
|
|
||||||
}
|
}
|
||||||
|
// candidates are handled
|
||||||
|
candidates.clear();
|
||||||
|
|
||||||
if ( propertyMapping != null && newPropertyMapping != null ) {
|
if ( propertyMapping != null && newPropertyMapping != null ) {
|
||||||
// TODO improve error message
|
// TODO improve error message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user