HHH-13496 Prefer #addAll method usage rather than looping
This commit is contained in:
parent
91f4ddb3ec
commit
d0bd04b6d3
|
@ -650,10 +650,7 @@ public class QueryTranslatorImpl extends BasicLoader implements FilterTranslator
|
|||
}
|
||||
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…
Reference in New Issue