Do not warn about Unsafe in Android

This commit is contained in:
Trustin Lee 2014-02-14 12:06:24 -08:00
parent bb145c0057
commit f0127ec991

View File

@ -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 " +