diff options
author | Sven Gothel <[email protected]> | 2011-02-09 08:08:54 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-02-09 08:08:54 +0100 |
commit | 209253c301a0afa13a9edb3d68adb67040a7e619 (patch) | |
tree | 418834237f174b8114f88107340ab00fca1978cc /src/nativewindow/classes/jogamp | |
parent | a43a3ee9106431ac089eee31b500211f775e684b (diff) |
Fix: Java 1.5 warnings
Diffstat (limited to 'src/nativewindow/classes/jogamp')
3 files changed, 9 insertions, 9 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java index e392e935f..d5811d9c5 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java @@ -79,7 +79,7 @@ public class JAWTUtil { if (!headlessMode) { try { jC = Class.forName("jogamp.opengl.awt.Java2D"); - m = jC.getMethod("isQueueFlusherThread", null); + m = jC.getMethod("isQueueFlusherThread", (Class[])null); ok = true; } catch (Exception e) { } @@ -104,8 +104,8 @@ public class JAWTUtil { boolean _hasSunToolkitAWTLock = false; if (null != sunToolkitAWTLockMethod && null != sunToolkitAWTUnlockMethod) { try { - sunToolkitAWTLockMethod.invoke(null, null); - sunToolkitAWTUnlockMethod.invoke(null, null); + sunToolkitAWTLockMethod.invoke(null, (Object[])null); + sunToolkitAWTUnlockMethod.invoke(null, (Object[])null); _hasSunToolkitAWTLock = true; } catch (Exception e) { } @@ -160,7 +160,7 @@ public class JAWTUtil { boolean b = false; if(j2dExist) { try { - b = ((Boolean)isQueueFlusherThread.invoke(null, null)).booleanValue(); + b = ((Boolean)isQueueFlusherThread.invoke(null, (Object[])null)).booleanValue(); } catch (Exception e) {} } return b; @@ -179,7 +179,7 @@ public class JAWTUtil { public static void awtLock() { if(hasSunToolkitAWTLock) { try { - sunToolkitAWTLockMethod.invoke(null, null); + sunToolkitAWTLockMethod.invoke(null, (Object[])null); } catch (Exception e) { throw new NativeWindowException("SunToolkit.awtLock failed", e); } @@ -197,7 +197,7 @@ public class JAWTUtil { public static void awtUnlock() { if(hasSunToolkitAWTLock) { try { - sunToolkitAWTUnlockMethod.invoke(null, null); + sunToolkitAWTUnlockMethod.invoke(null, (Object[])null); } catch (Exception e) { throw new NativeWindowException("SunToolkit.awtUnlock failed", e); } diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java index 1ff485290..5ad22807f 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/windows/Win32SunJDKReflection.java @@ -109,7 +109,7 @@ public class Win32SunJDKReflection { } try { - return ((Integer) win32GraphicsConfigGetVisualMethod.invoke(config, null)).intValue(); + return ((Integer) win32GraphicsConfigGetVisualMethod.invoke(config, (Object[])null)).intValue(); } catch (Exception e) { return 0; } diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java index b28874ef1..b576b0c6b 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/x11/X11SunJDKReflection.java @@ -87,7 +87,7 @@ public class X11SunJDKReflection { } try { - return ((Long) x11GraphicsDeviceGetDisplayMethod.invoke(device, null)).longValue(); + return ((Long) x11GraphicsDeviceGetDisplayMethod.invoke(device, (Object[])null)).longValue(); } catch (Exception e) { return 0; } @@ -110,7 +110,7 @@ public class X11SunJDKReflection { } try { - return ((Integer) x11GraphicsConfigGetVisualMethod.invoke(config, null)).intValue(); + return ((Integer) x11GraphicsConfigGetVisualMethod.invoke(config, (Object[])null)).intValue(); } catch (Exception e) { return 0; } |