@@ -27,16 +27,16 @@ public SpecialConnection(int channelMax) throws Exception {
2727
2828 private SpecialConnection (ConnectionFactory factory , int channelMax ) throws Exception {
2929 super (factory .getUsername (),
30- factory .getPassword (),
31- new SocketFrameHandler (SocketFactory .getDefault ().createSocket ("localhost" , AMQP .PROTOCOL .PORT )),
32- Executors .newFixedThreadPool (1 ),
33- factory .getVirtualHost (),
34- factory .getClientProperties (),
35- factory .getRequestedFrameMax (),
36- channelMax ,
37- factory .getRequestedHeartbeat (),
38- factory .getSaslConfig (),
39- new DefaultExceptionHandler ());
30+ factory .getPassword (),
31+ new SocketFrameHandler (SocketFactory .getDefault ().createSocket ("localhost" , AMQP .PROTOCOL .PORT )),
32+ Executors .newFixedThreadPool (1 ),
33+ factory .getVirtualHost (),
34+ factory .getClientProperties (),
35+ factory .getRequestedFrameMax (),
36+ channelMax ,
37+ factory .getRequestedHeartbeat (),
38+ factory .getSaslConfig (),
39+ new DefaultExceptionHandler ());
4040
4141 this .channelMax = channelMax ;
4242 }
@@ -92,7 +92,7 @@ public void testOpeningTooManyChannels() throws Exception {
9292
9393 // Construct a channel directly
9494 final ChannelN ch = new ChannelN ((AMQConnection ) conn , n + 1 ,
95- new ConsumerWorkService (Executors .newSingleThreadExecutor ()));
95+ new ConsumerWorkService (Executors .newSingleThreadExecutor ()));
9696 conn .addShutdownListener (new ShutdownListener () {
9797 public void shutdownCompleted (ShutdownSignalException cause ) {
9898 // make sure channel.open continuation is released
0 commit comments