Skip to content

Commit 1957e6a

Browse files
author
willie
committed
mybatis#101 Remove unneeded flag calculation
1 parent d5e0167 commit 1957e6a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/org/apache/ibatis/mapping/ResultMap.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,6 @@ public ResultMap build() {
145145
int paramIdx2 = actualArgNames.indexOf(o2.getProperty());
146146
return paramIdx1 - paramIdx2;
147147
});
148-
149-
//#101
150-
if (resultMap.configuration.isExperimentalConstructorCollectionMappingEnabled()) {
151-
resultMap.hasResultMapsUsingConstructorCollection = resultMap.constructorResultMappings.stream()
152-
.map(ResultMapping::getJavaType).anyMatch(resultMap.configuration.getObjectFactory()::isCollection);
153-
}
154148
}
155149
// lock down collections
156150
resultMap.resultMappings = Collections.unmodifiableList(resultMap.resultMappings);

0 commit comments

Comments
 (0)