Do not warn about Unsafe in Android
This commit is contained in:
parent
51829a5706
commit
dd4ed6aa14
@ -79,7 +79,7 @@ public final class PlatformDependent {
|
||||
logger.debug("-Dio.netty.noPreferDirect: {}", !DIRECT_BUFFER_PREFERRED);
|
||||
}
|
||||
|
||||
if (!hasUnsafe()) {
|
||||
if (!hasUnsafe() && !isAndroid()) {
|
||||
logger.info(
|
||||
"Your platform does not provide complete low-level API for accessing direct buffers reliably. " +
|
||||
"Unless explicitly requested, heap buffer will always be preferred to avoid potential system " +
|
||||
|
Loading…
Reference in New Issue
Block a user