From 76444dce2b678a7f6769564abac4f8a73f414609 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 26 Feb 2011 21:43:20 +0100 Subject: Clean/Fix: Threading Code - Remove unsafe double checked locking - Annotate safe double checked locking (volatile) - use 'static final' if possible --- src/jogl/classes/com/jogamp/opengl/JoglVersion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/com/jogamp') diff --git a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java index ef1ecd7e7..34108bce6 100644 --- a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java +++ b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java @@ -46,7 +46,7 @@ public class JoglVersion extends JogampVersion { } public static JoglVersion getInstance() { - if(null == jogampCommonVersionInfo) { + if(null == jogampCommonVersionInfo) { // volatile: ok synchronized(JoglVersion.class) { if( null == jogampCommonVersionInfo ) { final String packageName = "javax.media.opengl"; -- cgit v1.2.3