File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
src/main/java/org/apache/ibatis Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -199,12 +199,7 @@ public ResultMap addResultMap(
199
199
}
200
200
}
201
201
if (declaresConstructor ) {
202
- Iterator <ResultMapping > extendedResultMappingsIter = extendedResultMappings .iterator ();
203
- while (extendedResultMappingsIter .hasNext ()) {
204
- if (extendedResultMappingsIter .next ().getFlags ().contains (ResultFlag .CONSTRUCTOR )) {
205
- extendedResultMappingsIter .remove ();
206
- }
207
- }
202
+ extendedResultMappings .removeIf (resultMapping -> resultMapping .getFlags ().contains (ResultFlag .CONSTRUCTOR ));
208
203
}
209
204
resultMappings .addAll (extendedResultMappings );
210
205
}
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public ResultMap build() {
130
130
+ resultMap .getType ().getName () + "' by arg names " + constructorArgNames
131
131
+ ". There might be more info in debug log." );
132
132
}
133
- Collections . sort ( resultMap .constructorResultMappings , (o1 , o2 ) -> {
133
+ resultMap .constructorResultMappings . sort ( (o1 , o2 ) -> {
134
134
int paramIdx1 = actualArgNames .indexOf (o1 .getProperty ());
135
135
int paramIdx2 = actualArgNames .indexOf (o2 .getProperty ());
136
136
return paramIdx1 - paramIdx2 ;
You can’t perform that action at this time.
0 commit comments