Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>io.beanmapper</groupId>
<artifactId>beanmapper</artifactId>
<version>3.0.1</version>
<version>3.0.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>42 Bean Mapper</name>
<description>Easy-to-use bean mapper for conversion from form to object to view</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ public class BeanStrictMappingRequirementsException extends RuntimeException {
private final List<BeanMatchValidationMessage> validationMessages;

public BeanStrictMappingRequirementsException(BeanMatchValidationMessage validationMessage) {
this(Collections.<BeanMatchValidationMessage>singletonList(validationMessage));
this(Collections.singletonList(validationMessage));
}

public BeanStrictMappingRequirementsException(List<BeanMatchValidationMessage> validationMessages) {
super(
"One or more property mismatches between a mapped source and target type. " +
"Read the error logging above for more details."
);

this.validationMessages = validationMessages;
logErrors(validationMessages);
}
Expand Down