Skip to content

Commit 2ab256e

Browse files
committed
Remove wildcard for NIO write queue factory
No necessary here. References #410 (cherry picked from commit a9fa759) (cherry picked from commit 2590705)
1 parent 6ff2da5 commit 2ab256e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/rabbitmq/client/impl/nio/NioParams.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
public class NioParams {
3838

39-
static Function<? super NioContext, ? extends NioQueue> DEFAULT_WRITE_QUEUE_FACTORY =
39+
static Function<NioContext, NioQueue> DEFAULT_WRITE_QUEUE_FACTORY =
4040
ctx -> new BlockingQueueNioQueue(
4141
new ArrayBlockingQueue<>(ctx.getNioParams().getWriteQueueCapacity(), true),
4242
ctx.getNioParams().getWriteEnqueuingTimeoutInMs()
@@ -112,7 +112,7 @@ public void configure(SSLEngine sslEngine) throws IOException {
112112
*
113113
* @since 5.5.0
114114
*/
115-
private Function<? super NioContext, ? extends NioQueue> writeQueueFactory =
115+
private Function<NioContext, NioQueue> writeQueueFactory =
116116
DEFAULT_WRITE_QUEUE_FACTORY;
117117

118118
public NioParams() {
@@ -422,12 +422,12 @@ public ByteBufferFactory getByteBufferFactory() {
422422
* @since 5.5.0
423423
*/
424424
public NioParams setWriteQueueFactory(
425-
Function<? super NioContext, ? extends NioQueue> writeQueueFactory) {
425+
Function<NioContext, NioQueue> writeQueueFactory) {
426426
this.writeQueueFactory = writeQueueFactory;
427427
return this;
428428
}
429429

430-
public Function<? super NioContext, ? extends NioQueue> getWriteQueueFactory() {
430+
public Function<NioContext, NioQueue> getWriteQueueFactory() {
431431
return writeQueueFactory;
432432
}
433433
}

0 commit comments

Comments
 (0)