Package org.jboss.netty.util.internal
Class DetectionUtil
- java.lang.Object
-
- org.jboss.netty.util.internal.DetectionUtil
-
public final class DetectionUtil extends Object
Utility that detects various properties specific to the current runtime environment, such as Java version and the availability of thesun.misc.Unsafeobject.
You can disable the use ofsun.misc.Unsafeif you specify the System property org.jboss.netty.tryUnsafe with value offalse. Default istrue.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasUnsafe()static booleanisWindows()Returntrueif the JVM is running on Windowsstatic intjavaVersion()
-