HHH-13496 ManagedFlushChecker and AfterCompletionAction fields are unused in SessionImpl
This commit is contained in:
parent
0b67ac0d0b
commit
bbfad943a0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue