diff options
-rw-r--r-- | src/java/com/jogamp/common/util/awt/AWTEDTExecutor.java | 20 | ||||
-rw-r--r-- | src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java | 38 |
2 files changed, 29 insertions, 29 deletions
diff --git a/src/java/com/jogamp/common/util/awt/AWTEDTExecutor.java b/src/java/com/jogamp/common/util/awt/AWTEDTExecutor.java index ec9348d..cc5d5d1 100644 --- a/src/java/com/jogamp/common/util/awt/AWTEDTExecutor.java +++ b/src/java/com/jogamp/common/util/awt/AWTEDTExecutor.java @@ -48,17 +48,17 @@ public class AWTEDTExecutor implements RunnableExecutor { if(EventQueue.isDispatchThread()) { r.run(); } else { - try { - if(wait) { - EventQueue.invokeAndWait(r); - } else { - EventQueue.invokeLater(r); + try { + if(wait) { + EventQueue.invokeAndWait(r); + } else { + EventQueue.invokeLater(r); + } + } catch (final InvocationTargetException e) { + throw new RuntimeException(e.getTargetException()); + } catch (final InterruptedException e) { + throw new RuntimeException(e); } - } catch (final InvocationTargetException e) { - throw new RuntimeException(e.getTargetException()); - } catch (final InterruptedException e) { - throw new RuntimeException(e); - } } } diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java index aeca7e7..6b841ad 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java @@ -35,25 +35,25 @@ import java.security.*; public class BindingJNILibLoader extends JNILibLoaderBase { - public static void loadBindingtest1p1() { - SecurityUtil.doPrivileged(new PrivilegedAction<Object>() { - @Override - public Object run() { - loadLibrary("Bindingtest1p1", null, true, BindingJNILibLoader.class.getClassLoader()); - return null; - } - }); - } - - public static void loadBindingtest1p2() { - SecurityUtil.doPrivileged(new PrivilegedAction<Object>() { - @Override - public Object run() { - loadLibrary("Bindingtest1p2", null, true, BindingJNILibLoader.class.getClassLoader()); - return null; - } - }); - } + public static void loadBindingtest1p1() { + SecurityUtil.doPrivileged(new PrivilegedAction<Object>() { + @Override + public Object run() { + loadLibrary("Bindingtest1p1", null, true, BindingJNILibLoader.class.getClassLoader()); + return null; + } + }); + } + + public static void loadBindingtest1p2() { + SecurityUtil.doPrivileged(new PrivilegedAction<Object>() { + @Override + public Object run() { + loadLibrary("Bindingtest1p2", null, true, BindingJNILibLoader.class.getClassLoader()); + return null; + } + }); + } } |