HHH-13496 Move two instance fields to local fields in SessionImpl

This commit is contained in:
Sanne Grinovero 2019-07-05 12:49:05 +01:00
parent 6c44ef12e6
commit dd7d798d77
1 changed files with 2 additions and 3 deletions

View File

@ -234,9 +234,6 @@ public final class SessionImpl
private transient int dontFlushFromFind;
private transient ExceptionMapper exceptionMapper;
private transient ManagedFlushChecker managedFlushChecker;
private transient AfterCompletionAction afterCompletionAction;
private transient LoadEvent loadEvent; //cached LoadEvent instance
@ -343,6 +340,8 @@ public final class SessionImpl
private void initializeFromSessionOwner(SessionOwner sessionOwner) {
ManagedFlushChecker managedFlushChecker;
AfterCompletionAction afterCompletionAction;
if ( sessionOwner != null ) {
if ( sessionOwner.getExceptionMapper() != null ) {
exceptionMapper = sessionOwner.getExceptionMapper();