mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13496 Prefer #addAll method usage rather than looping
This commit is contained in:
parent
91f4ddb3ec
commit
d0bd04b6d3
@ -650,10 +650,7 @@ private void renderSQL() throws QueryException, MappingException {
|
||||
}
|
||||
else {
|
||||
rtsize = returnedTypes.size();
|
||||
Iterator iter = entitiesToFetch.iterator();
|
||||
while ( iter.hasNext() ) {
|
||||
returnedTypes.add( iter.next() );
|
||||
}
|
||||
returnedTypes.addAll( entitiesToFetch );
|
||||
}
|
||||
int size = returnedTypes.size();
|
||||
persisters = new Queryable[size];
|
||||
|
Loading…
x
Reference in New Issue
Block a user