Fix a bug where DetectionUtil.hasUnsafe() returns a wrong value

This commit is contained in:
Trustin Lee 2012-06-01 18:25:56 -07:00
parent 141a05c831
commit e2a617b07b

View File

@ -68,7 +68,7 @@ public final class DetectionUtil {
if (value == null) {
value = SystemPropertyUtil.get("org.jboss.netty.tryUnsafe", "true");
}
if ("true".equalsIgnoreCase(value)) {
if (!"true".equalsIgnoreCase(value)) {
return false;
}