HHH-12289 - One call of the SessionImpl#listeners( ) method from SessionImpl#autoFlushIfRequired() is useless.

This commit is contained in:
Andrea Boriero 2018-02-13 13:53:58 +00:00
parent 99b7f7e9b8
commit 848217146c

View File

@ -1393,7 +1393,6 @@ protected boolean autoFlushIfRequired(Set querySpaces) throws HibernateException
return false;
}
AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
listeners( EventType.AUTO_FLUSH );
for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
listener.onAutoFlush( event );
}