Fix Sonar Issue

This commit is contained in:
Gary Russell
2022-07-28 10:41:27 -04:00
parent 330764c28c
commit 8becb8925e

View File

@@ -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;