netty5/transport-native-kqueue/src/main
Roger 6138541033 Avoid repeating the same field and hiding it (#8335)
Motivation

The EpollChannelConfig (same for KQueues) and its subclasses repeatetly declare their own channel field which leads to a 3x repetition for each config instance. Given the fields are protected or package-private it's exposing the code code to "field hiding" bugs.

Modifications

Use the the existing protected channel field from the DefaultChannelConfig class and simply cast it when needed.

Result

Fixes #8331
2018-09-28 17:37:14 +02:00
..
c We should call the UnLoad methods when we detect an error during calling OnLoad (#8237) 2018-08-30 06:56:42 +02:00
java/io/netty/channel/kqueue Avoid repeating the same field and hiding it (#8335) 2018-09-28 17:37:14 +02:00