Fix Polymorphic collection issue, remove unused code

This commit is contained in:
Andrea Boriero 2020-01-14 13:25:08 +00:00
parent b23e5ba54a
commit 9643537262
1 changed files with 0 additions and 2 deletions

View File

@ -5685,7 +5685,6 @@ public abstract class AbstractEntityPersister
private Map<String, AttributeMapping> declaredAttributeMappings = new LinkedHashMap<>(); private Map<String, AttributeMapping> declaredAttributeMappings = new LinkedHashMap<>();
private List<AttributeMapping> attributeMappings; private List<AttributeMapping> attributeMappings;
protected List<Fetchable> staticFetchableList; protected List<Fetchable> staticFetchableList;
protected int subtypesAttributeStateArrayStartingPosition;
protected ReflectionOptimizer.AccessOptimizer accessOptimizer; protected ReflectionOptimizer.AccessOptimizer accessOptimizer;
@ -5792,7 +5791,6 @@ public abstract class AbstractEntityPersister
() -> { () -> {
staticFetchableList = new ArrayList<>( attributeMappings.size() ); staticFetchableList = new ArrayList<>( attributeMappings.size() );
visitAttributeMappings( attributeMapping -> staticFetchableList.add( (Fetchable) attributeMapping ) ); visitAttributeMappings( attributeMapping -> staticFetchableList.add( (Fetchable) attributeMapping ) );
subtypesAttributeStateArrayStartingPosition = attributeMappings.size();
visitSubTypeAttributeMappings( attributeMapping -> staticFetchableList.add( (Fetchable) attributeMapping ) ); visitSubTypeAttributeMappings( attributeMapping -> staticFetchableList.add( (Fetchable) attributeMapping ) );
return true; return true;
} }