Skip to content

Remove deprecated EventLoopGroup checks from supportGroup()#4084

Merged
violetagg merged 1 commit intomainfrom
simplify-support-group
Feb 3, 2026
Merged

Remove deprecated EventLoopGroup checks from supportGroup()#4084
violetagg merged 1 commit intomainfrom
simplify-support-group

Conversation

@violetagg
Copy link
Member

The supportGroup() methods in DefaultLoopEpoll and DefaultLoopKQueue no longer need explicit instanceof checks for deprecated EventLoopGroup classes (EpollEventLoopGroup, KQueueEventLoopGroup). The existing IoEventLoopGroup.isCompatible() check already handles both new MultiThreadIoEventLoopGroup and deprecated EventLoopGroup implementations.

Add parameterised tests to verify backward compatibility, ensuring that both new and deprecated EventLoopGroup implementations correctly select channel factories via LoopResources.onChannel() and onChannelClass().

The supportGroup() methods in DefaultLoopEpoll and DefaultLoopKQueue
no longer need explicit instanceof checks for deprecated EventLoopGroup
classes (EpollEventLoopGroup, KQueueEventLoopGroup). The existing
IoEventLoopGroup.isCompatible() check already handles both new
MultiThreadIoEventLoopGroup and deprecated EventLoopGroup implementations.

Add parameterised tests to verify backward compatibility, ensuring that
both new and deprecated EventLoopGroup implementations correctly select
channel factories via LoopResources.onChannel() and onChannelClass().

Signed-off-by: Violeta Georgieva <[email protected]>
@violetagg violetagg added this to the 1.3.3 milestone Feb 3, 2026
@violetagg violetagg added the type/enhancement A general enhancement label Feb 3, 2026
@violetagg violetagg merged commit e50cb9d into main Feb 3, 2026
20 of 24 checks passed
@violetagg violetagg deleted the simplify-support-group branch February 3, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant