From d54b2688ea2b4e59efe645353f9421954900057e Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Tue, 13 Feb 2018 13:53:58 +0000 Subject: [PATCH] HHH-12289 - One call of the SessionImpl#listeners( ) method from SessionImpl#autoFlushIfRequired() is useless. --- .../src/main/java/org/hibernate/internal/SessionImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java index 5434d1a04b..99493e6da1 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java @@ -1396,7 +1396,6 @@ public final class SessionImpl return false; } AutoFlushEvent event = new AutoFlushEvent( querySpaces, this ); - listeners( EventType.AUTO_FLUSH ); for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) { listener.onAutoFlush( event ); }