From db25b1ba6575210741e485838d0882a1590125e6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Jul 2014 10:33:44 +0200 Subject: Findbugs.synchronization: Fix double-check w/o volatile; Remove redundant synchronized from setter --- src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nativewindow/classes/jogamp') diff --git a/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java b/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java index 8203a804b..31e85dcee 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java @@ -40,7 +40,7 @@ public class GDIUtil implements ToolkitProperties { private static final String dummyWindowClassNameBase = "_dummyWindow_clazz" ; private static RegisteredClassFactory dummyWindowClassFactory; - private static boolean isInit = false; + private static volatile boolean isInit = false; /** * Called by {@link NativeWindowFactory#initSingleton()} -- cgit v1.2.3