Update Netty to 4.1.44.Final and remove usage of some deprecated methods

This commit is contained in:
md_5
2019-12-21 11:52:45 +11:00
parent 4204fa2966
commit 065893b523
6 changed files with 11 additions and 12 deletions

View File

@@ -28,8 +28,8 @@ public final class NativeCode<T>
{
try
{
return ( loaded ) ? nativeImpl.newInstance() : javaImpl.newInstance();
} catch ( IllegalAccessException | InstantiationException ex )
return ( loaded ) ? nativeImpl.getDeclaredConstructor().newInstance() : javaImpl.getDeclaredConstructor().newInstance();
} catch ( ReflectiveOperationException ex )
{
throw new RuntimeException( "Error getting instance", ex );
}