From 06715dd9b693acadce9664332c1e6505da0fd2c0 Mon Sep 17 00:00:00 2001 From: Nathan Xu Date: Mon, 5 Oct 2020 22:04:30 -0400 Subject: [PATCH] HHH-14248 Other minor improvements to ActionQueue --- .../src/main/java/org/hibernate/engine/spi/ActionQueue.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java index 425bdc4e92..a60561a9da 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java @@ -1155,8 +1155,6 @@ public class ActionQueue { .getRootEntityName() ); - // the entity associated with the current action. - Object currentEntity = action.getInstance(); int index = latestBatches.indexOf( batchIdentifier ); if ( index != -1 ) { @@ -1266,8 +1264,8 @@ public class ActionQueue { for ( int i = 0; i < propertyValues.length; i++ ) { Object value = propertyValues[i]; - Type type = propertyTypes[i]; if ( value != null ) { + Type type = propertyTypes[i]; addParentChildEntityNameByPropertyAndValue( action, batchIdentifier, type, value ); } }