From f0127ec991fe122c2f139b25abcace84a9c9c031 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 14 Feb 2014 12:06:24 -0800 Subject: [PATCH] Do not warn about Unsafe in Android --- .../src/main/java/io/netty/util/internal/PlatformDependent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/io/netty/util/internal/PlatformDependent.java b/common/src/main/java/io/netty/util/internal/PlatformDependent.java index 667162aad5..a414c578c0 100644 --- a/common/src/main/java/io/netty/util/internal/PlatformDependent.java +++ b/common/src/main/java/io/netty/util/internal/PlatformDependent.java @@ -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 " +