diff options
author | Sven Gothel <[email protected]> | 2011-12-01 16:25:57 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-12-01 16:25:57 +0100 |
commit | 96c023bdf68d2e14d402c34a83e44fe8532d18cd (patch) | |
tree | d0605797f34ea72550b83bdc7d96a058a27e1008 /src/java/jogamp/common | |
parent | 5850e04ea8959cf1591db6788635df5645ab44ad (diff) |
JVMUtil: Remove Platform dependency - It's being called by Platform and is private API.
Diffstat (limited to 'src/java/jogamp/common')
-rw-r--r-- | src/java/jogamp/common/jvm/JVMUtil.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/java/jogamp/common/jvm/JVMUtil.java b/src/java/jogamp/common/jvm/JVMUtil.java index ac6355f..af74f08 100644 --- a/src/java/jogamp/common/jvm/JVMUtil.java +++ b/src/java/jogamp/common/jvm/JVMUtil.java @@ -37,7 +37,6 @@ import java.nio.ByteBuffer; import jogamp.common.Debug; import com.jogamp.common.nio.Buffers; -import com.jogamp.common.os.Platform; /** @@ -55,8 +54,6 @@ public class JVMUtil { private static final boolean DEBUG = Debug.debug("JVMUtil"); static { - Platform.initSingleton(); // loads native gluegen-rt library - ByteBuffer buffer = Buffers.newDirectByteBuffer(64); if( ! initialize(buffer) ) { throw new RuntimeException("Failed to initialize the JVMUtil "+Thread.currentThread().getName()); @@ -67,9 +64,9 @@ public class JVMUtil { } } - public static void initSingleton() { - } - + /** Kicks of one-time static initialization of this class. See {@link JVMUtil}. */ + public static void initSingleton() { } + private JVMUtil() {} private static native boolean initialize(java.nio.ByteBuffer buffer); |