HHH-13496 Prefer #addAll method usage rather than looping

This commit is contained in:
Sanne Grinovero 2019-07-05 21:32:19 +01:00
parent 91f4ddb3ec
commit d0bd04b6d3
1 changed files with 1 additions and 4 deletions

View File

@ -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];