netty5/transport/src/test/java/io/netty
Jason Tedor d59b4840c1 Cleanup ChannelId handling of basic methods
Motiviation:

Simplify implementation of compareTo/equals/hashCode for ChannelIds.

Modifications:

We simplfy the hashCode implementation for DefaultChannelId by not
making it random, but making it based on the underlying data. We fix the
compareTo implementation for DefaultChannelId by using lexicographic
comparison of the underlying data array. We fix the compareTo
implementation for CustomChannelId to avoid the possibility of overflow.

Result:

Cleaner code that is easier to maintain.
2017-02-15 11:53:36 -08:00
..
bootstrap [#5566] Ensure using a ChannelInitializer via ServerBootstrap.handler(...) produce correct ordering. 2016-07-27 08:34:31 +02:00
channel Cleanup ChannelId handling of basic methods 2017-02-15 11:53:36 -08:00