From 26fafc00984260f1263e3f18537124702199adaf Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Fri, 5 Jul 2019 15:42:37 +0100 Subject: [PATCH] HHH-13496 Remove unused collection from EntityMetamodel --- .../java/org/hibernate/tuple/entity/EntityMetamodel.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java b/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java index c68718d9bf..f4290487f7 100644 --- a/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java +++ b/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java @@ -572,7 +572,6 @@ public class EntityMetamodel implements Serializable { private boolean hadInMemoryGeneration; private boolean hadInDatabaseGeneration; - private List inMemoryStrategies; private List inDatabaseStrategies; public CompositeGenerationStrategyPairBuilder(Property mappingProperty) { @@ -585,11 +584,6 @@ public class EntityMetamodel implements Serializable { } private void add(InMemoryValueGenerationStrategy inMemoryStrategy) { - if ( inMemoryStrategies == null ) { - inMemoryStrategies = new ArrayList<>(); - } - inMemoryStrategies.add( inMemoryStrategy ); - if ( inMemoryStrategy.getGenerationTiming() != GenerationTiming.NEVER ) { hadInMemoryGeneration = true; }