Fix Netty deprecation warnings
Merge pull request #2635 from mikamix/fix_netty_deplication_warnings

Fix Netty deprecation warnings