diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/classic/QueryTranslatorImpl.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/classic/QueryTranslatorImpl.java index 7f4432e1f6..b86f881b60 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/classic/QueryTranslatorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/classic/QueryTranslatorImpl.java @@ -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];