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 ) {
|
for ( MetaEntity entity : toProcessEntities ) {
|
||||||
// see METAGEN-36
|
// see METAGEN-36
|
||||||
if ( generatedModelClasses.contains( entity.getQualifiedName() ) ) {
|
if ( generatedModelClasses.contains( entity.getQualifiedName() ) ) {
|
||||||
toProcessEntities.remove( entity );
|
processedEntities.add( entity );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( modelGenerationNeedsToBeDeferred( toProcessEntities, entity ) ) {
|
if ( modelGenerationNeedsToBeDeferred( toProcessEntities, entity ) ) {
|
||||||
|
|
Loading…
Reference in New Issue