You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewExecutorException("@AutomapConstructor should be used in only one constructor.");
716
-
}
717
-
if (automapConstructors.size() == 1) {
718
-
returnOptional.of(automapConstructors.get(0));
719
-
}
720
-
if (configuration.isArgNameBasedConstructorAutoMapping()) {
721
-
// Finding-best-match type implementation is possible,
722
-
// but using @AutomapConstructor seems sufficient.
723
-
thrownewExecutorException(MessageFormat.format(
724
-
"'argNameBasedConstructorAutoMapping' is enabled and the class ''{0}'' has multiple constructors, so @AutomapConstructor must be added to one of the constructors.",
thrownewExecutorException("@AutomapConstructor should be used in only one constructor.");
717
+
}).or(() -> {
718
+
if (configuration.isArgNameBasedConstructorAutoMapping()) {
719
+
// Finding-best-match type implementation is possible,
720
+
// but using @AutomapConstructor seems sufficient.
721
+
thrownewExecutorException(MessageFormat.format(
722
+
"'argNameBasedConstructorAutoMapping' is enabled and the class ''{0}'' has multiple constructors, so @AutomapConstructor must be added to one of the constructors.",
0 commit comments