Fix a bug where DetectionUtil.hasUnsafe() returns a wrong value
This commit is contained in:
parent
141a05c831
commit
e2a617b07b
@ -68,7 +68,7 @@ public final class DetectionUtil {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
value = SystemPropertyUtil.get("org.jboss.netty.tryUnsafe", "true");
|
value = SystemPropertyUtil.get("org.jboss.netty.tryUnsafe", "true");
|
||||||
}
|
}
|
||||||
if ("true".equalsIgnoreCase(value)) {
|
if (!"true".equalsIgnoreCase(value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user