HHH-14242 Micro optimisations of ActionQueue: redundant branch evaluation
This commit is contained in:
parent
d959098ec7
commit
e752b8d191
|
@ -1179,7 +1179,7 @@ public class ActionQueue {
|
|||
if ( prevBatchIdentifier.hasAnyParentEntityNames( batchIdentifier ) ) {
|
||||
prevBatchIdentifier.parent = batchIdentifier;
|
||||
}
|
||||
if ( batchIdentifier.hasAnyChildEntityNames( prevBatchIdentifier ) ) {
|
||||
else if ( batchIdentifier.hasAnyChildEntityNames( prevBatchIdentifier ) ) {
|
||||
prevBatchIdentifier.parent = batchIdentifier;
|
||||
}
|
||||
}
|
||||
|
@ -1191,7 +1191,7 @@ public class ActionQueue {
|
|||
nextBatchIdentifier.parent = batchIdentifier;
|
||||
nextBatchIdentifier.getParentEntityNames().add( batchIdentifier.getEntityName() );
|
||||
}
|
||||
if ( batchIdentifier.hasAnyChildEntityNames( nextBatchIdentifier ) ) {
|
||||
else if ( batchIdentifier.hasAnyChildEntityNames( nextBatchIdentifier ) ) {
|
||||
nextBatchIdentifier.parent = batchIdentifier;
|
||||
nextBatchIdentifier.getParentEntityNames().add( batchIdentifier.getEntityName() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue