From 23904163188a9d09c19897d795c68e32fe8e91f1 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Thu, 5 Aug 2021 23:56:36 +0100 Subject: [PATCH] HHH-14773 JdbcCoordinatorImpl micro improvement: unguarded tracev parameters should be constant --- .../hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java index 2d0dae12e2..5ed9b06e89 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java @@ -252,8 +252,9 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator { @Override public void afterStatementExecution() { - LOG.tracev( "Starting after statement execution processing [{0}]", getConnectionReleaseMode() ); - if ( getConnectionReleaseMode() == ConnectionReleaseMode.AFTER_STATEMENT ) { + final ConnectionReleaseMode connectionReleaseMode = getConnectionReleaseMode(); + LOG.tracev( "Starting after statement execution processing [{0}]", connectionReleaseMode ); + if ( connectionReleaseMode == ConnectionReleaseMode.AFTER_STATEMENT ) { if ( ! releasesEnabled ) { LOG.debug( "Skipping aggressive release due to manual disabling" ); return;