From 8becb8925e5e209987fcfb35d5f59eac97847d56 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 28 Jul 2022 10:41:27 -0400 Subject: [PATCH] Fix Sonar Issue --- .../amqp/rabbit/connection/ThreadChannelConnectionFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ThreadChannelConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ThreadChannelConnectionFactory.java index 69edbc64..0eb45934 100644 --- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ThreadChannelConnectionFactory.java +++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ThreadChannelConnectionFactory.java @@ -119,7 +119,7 @@ public class ThreadChannelConnectionFactory extends AbstractConnectionFactory im public synchronized Connection createConnection() throws AmqpException { if (this.connection == null || !this.connection.isOpen()) { Connection bareConnection = createBareConnection(); // NOSONAR - see destroy() - this.connection = new ConnectionWrapper(bareConnection.getDelegate(), getCloseTimeout()); + this.connection = new ConnectionWrapper(bareConnection.getDelegate(), getCloseTimeout()); // NOSONAR getConnectionListener().onCreate(this.connection); } return this.connection;