File tree 1 file changed +3
-3
lines changed
src/main/java/org/apache/ibatis/executor/resultset
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -710,13 +710,13 @@ private Optional<Constructor<?>> findConstructorForAutomapping(final Class<?> re
710
710
if (constructors .length == 1 ) {
711
711
return Optional .of (constructors [0 ]);
712
712
}
713
- Optional <Constructor <?>> reduce = Arrays .stream (constructors )
713
+ Optional <Constructor <?>> annotated = Arrays .stream (constructors )
714
714
.filter (x -> x .isAnnotationPresent (AutomapConstructor .class ))
715
715
.reduce ((x , y ) -> {
716
716
throw new ExecutorException ("@AutomapConstructor should be used in only one constructor." );
717
717
});
718
- if (reduce .isPresent ()) {
719
- return reduce ;
718
+ if (annotated .isPresent ()) {
719
+ return annotated ;
720
720
} else if (configuration .isArgNameBasedConstructorAutoMapping ()) {
721
721
// Finding-best-match type implementation is possible,
722
722
// but using @AutomapConstructor seems sufficient.
You can’t perform that action at this time.
0 commit comments