METAGEN-49 Making sure that elements don't get removed from the collection while iterating over it
This commit is contained in:
parent
8b2c7b4909
commit
b73a5fd2ad
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in New Issue