aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/awt/AWTUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-09 08:08:54 +0100
committerSven Gothel <[email protected]>2011-02-09 08:08:54 +0100
commit209253c301a0afa13a9edb3d68adb67040a7e619 (patch)
tree418834237f174b8114f88107340ab00fca1978cc /src/jogl/classes/jogamp/opengl/awt/AWTUtil.java
parenta43a3ee9106431ac089eee31b500211f775e684b (diff)
Fix: Java 1.5 warnings
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/awt/AWTUtil.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/awt/AWTUtil.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jogl/classes/jogamp/opengl/awt/AWTUtil.java b/src/jogl/classes/jogamp/opengl/awt/AWTUtil.java
index 29328f216..51143ab51 100644
--- a/src/jogl/classes/jogamp/opengl/awt/AWTUtil.java
+++ b/src/jogl/classes/jogamp/opengl/awt/AWTUtil.java
@@ -58,8 +58,8 @@ public class AWTUtil {
if(!headlessMode) {
try {
j2dClazz = Class.forName("jogamp.opengl.awt.Java2D");
- isOGLPipelineActive = j2dClazz.getMethod("isOGLPipelineActive", null);
- isQueueFlusherThread = j2dClazz.getMethod("isQueueFlusherThread", null);
+ isOGLPipelineActive = j2dClazz.getMethod("isOGLPipelineActive", (Class[])null);
+ isQueueFlusherThread = j2dClazz.getMethod("isQueueFlusherThread", (Class[])null);
j2dOk = true;
} catch (Exception e) {}
}
@@ -82,8 +82,8 @@ public class AWTUtil {
if(j2dOk) {
try {
- if( !((Boolean)isOGLPipelineActive.invoke(null, null)).booleanValue() ||
- !((Boolean)isQueueFlusherThread.invoke(null, null)).booleanValue() ) {
+ if( !((Boolean)isOGLPipelineActive.invoke(null, (Object[])null)).booleanValue() ||
+ !((Boolean)isQueueFlusherThread.invoke(null, (Object[])null)).booleanValue() ) {
JAWTUtil.lockToolkit();
}
} catch (Exception e) { j2dOk=false; }
@@ -105,8 +105,8 @@ public class AWTUtil {
if(j2dOk) {
try {
- if( !((Boolean)isOGLPipelineActive.invoke(null, null)).booleanValue() ||
- !((Boolean)isQueueFlusherThread.invoke(null, null)).booleanValue() ) {
+ if( !((Boolean)isOGLPipelineActive.invoke(null, (Object[])null)).booleanValue() ||
+ !((Boolean)isQueueFlusherThread.invoke(null, (Object[])null)).booleanValue() ) {
JAWTUtil.unlockToolkit();
}
} catch (Exception e) { j2dOk=false; }