summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-01 16:25:57 +0100
committerSven Gothel <[email protected]>2011-12-01 16:25:57 +0100
commit96c023bdf68d2e14d402c34a83e44fe8532d18cd (patch)
treed0605797f34ea72550b83bdc7d96a058a27e1008 /src/java/jogamp
parent5850e04ea8959cf1591db6788635df5645ab44ad (diff)
JVMUtil: Remove Platform dependency - It's being called by Platform and is private API.
Diffstat (limited to 'src/java/jogamp')
-rw-r--r--src/java/jogamp/common/jvm/JVMUtil.java9
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);