METAGEN-49 Making sure that elements don't get removed from the collection while iterating over it

This commit is contained in:
Hardy Ferentschik 2010-12-02 14:55:26 +01:00 committed by Strong Liu
parent 8b2c7b4909
commit b73a5fd2ad
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class JPAMetaModelEntityProcessor extends AbstractProcessor {
for ( MetaEntity entity : toProcessEntities ) {
// see METAGEN-36
if ( generatedModelClasses.contains( entity.getQualifiedName() ) ) {
toProcessEntities.remove( entity );
processedEntities.add( entity );
continue;
}
if ( modelGenerationNeedsToBeDeferred( toProcessEntities, entity ) ) {