Skip to content

Commit 68447e2

Browse files
committed
Corrected variable name
1 parent bc3c37c commit 68447e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -710,13 +710,13 @@ private Optional<Constructor<?>> findConstructorForAutomapping(final Class<?> re
710710
if (constructors.length == 1) {
711711
return Optional.of(constructors[0]);
712712
}
713-
Optional<Constructor<?>> reduce = Arrays.stream(constructors)
713+
Optional<Constructor<?>> annotated = Arrays.stream(constructors)
714714
.filter(x -> x.isAnnotationPresent(AutomapConstructor.class))
715715
.reduce((x, y) -> {
716716
throw new ExecutorException("@AutomapConstructor should be used in only one constructor.");
717717
});
718-
if (reduce.isPresent()) {
719-
return reduce;
718+
if (annotated.isPresent()) {
719+
return annotated;
720720
} else if (configuration.isArgNameBasedConstructorAutoMapping()) {
721721
// Finding-best-match type implementation is possible,
722722
// but using @AutomapConstructor seems sufficient.

0 commit comments

Comments
 (0)