HHH-13496 ManagedFlushChecker and AfterCompletionAction fields are unused in SessionImpl

This commit is contained in:
Sanne Grinovero 2019-07-05 15:19:09 +01:00
parent 0b67ac0d0b
commit bbfad943a0
1 changed files with 0 additions and 16 deletions

View File

@ -340,8 +340,6 @@ public final class SessionImpl
private void initializeFromSessionOwner(SessionOwner sessionOwner) {
ManagedFlushChecker managedFlushChecker;
AfterCompletionAction afterCompletionAction;
if ( sessionOwner != null ) {
if ( sessionOwner.getExceptionMapper() != null ) {
exceptionMapper = sessionOwner.getExceptionMapper();
@ -349,23 +347,9 @@ public final class SessionImpl
else {
exceptionMapper = ExceptionMapperStandardImpl.INSTANCE;
}
if ( sessionOwner.getAfterCompletionAction() != null ) {
afterCompletionAction = sessionOwner.getAfterCompletionAction();
}
else {
afterCompletionAction = STANDARD_AFTER_COMPLETION_ACTION;
}
if ( sessionOwner.getManagedFlushChecker() != null ) {
managedFlushChecker = sessionOwner.getManagedFlushChecker();
}
else {
managedFlushChecker = STANDARD_MANAGED_FLUSH_CHECKER;
}
}
else {
exceptionMapper = ExceptionMapperStandardImpl.INSTANCE;
afterCompletionAction = STANDARD_AFTER_COMPLETION_ACTION;
managedFlushChecker = STANDARD_MANAGED_FLUSH_CHECKER;
}
}