From 96c023bdf68d2e14d402c34a83e44fe8532d18cd Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 1 Dec 2011 16:25:57 +0100 Subject: JVMUtil: Remove Platform dependency - It's being called by Platform and is private API. --- src/java/jogamp/common/jvm/JVMUtil.java | 9 +++------ 1 file 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); -- cgit v1.2.3