Skip to content

Commit 20c7f9c

Browse files
committed
Test: Fix codenarc errors
1 parent 7f6a09a commit 20c7f9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

driver-core/src/test/unit/com/mongodb/connection/netty/NettyStreamFactoryFactorySpecification.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ class NettyStreamFactoryFactorySpecification extends Specification {
4747
stream.getWorkerGroup().getClass() == eventLoopGroupClass
4848

4949
where:
50-
description | factoryFactory | allocator | socketChannelClass | eventLoopGroupClass
51-
'default' | s_defaultFactory | ByteBufAllocator.DEFAULT | NioSocketChannel | NioEventLoopGroup
52-
'custom' | s_customFactory | UnpooledByteBufAllocator.DEFAULT | OioSocketChannel | OioEventLoopGroup
50+
description | factoryFactory | allocator | socketChannelClass | eventLoopGroupClass
51+
'default' | DEFAULT_FACTORY | ByteBufAllocator.DEFAULT | NioSocketChannel | NioEventLoopGroup
52+
'custom' | CUSTOM_FACTORY | UnpooledByteBufAllocator.DEFAULT | OioSocketChannel | OioEventLoopGroup
5353
}
5454

5555
SocketSettings socketSettings = SocketSettings.builder().build()
5656
SslSettings sslSettings = SslSettings.builder().build()
5757
ServerAddress serverAddress = new ServerAddress()
58-
static def s_defaultFactory = NettyStreamFactoryFactory.builder().build()
59-
static def s_customFactory = NettyStreamFactoryFactory.builder()
58+
static final DEFAULT_FACTORY = NettyStreamFactoryFactory.builder().build()
59+
static final CUSTOM_FACTORY = NettyStreamFactoryFactory.builder()
6060
.allocator(UnpooledByteBufAllocator.DEFAULT)
6161
.socketChannelClass(OioSocketChannel)
6262
.eventLoopGroup(new OioEventLoopGroup())

0 commit comments

Comments
 (0)