Skip to content

Commit 3a88b1c

Browse files
NathanQingyangXuSanne
authored andcommitted
HHH-14248 Other minor improvements to ActionQueue
1 parent c3e43ec commit 3a88b1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,6 @@ public void sort(List<AbstractEntityInsertAction> insertions) {
11551155
.getRootEntityName()
11561156
);
11571157

1158-
// the entity associated with the current action.
1159-
Object currentEntity = action.getInstance();
11601158
int index = latestBatches.indexOf( batchIdentifier );
11611159

11621160
if ( index != -1 ) {
@@ -1266,8 +1264,8 @@ private void addParentChildEntityNames(AbstractEntityInsertAction action, BatchI
12661264

12671265
for ( int i = 0; i < propertyValues.length; i++ ) {
12681266
Object value = propertyValues[i];
1269-
Type type = propertyTypes[i];
12701267
if ( value != null ) {
1268+
Type type = propertyTypes[i];
12711269
addParentChildEntityNameByPropertyAndValue( action, batchIdentifier, type, value );
12721270
}
12731271
}

0 commit comments

Comments
 (0)