diff options
author | Sven Gothel <[email protected]> | 2023-01-23 06:28:55 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-01-23 06:28:55 +0100 |
commit | f5ea3aa0429d6efd3616a605e5df78530aba3e25 (patch) | |
tree | fa61e49757b425e86a2c4df97af8a60addf35d24 /src | |
parent | 3987a767d0edeaf74a23ea5d4d9c4793f4c3c8c1 (diff) |
Formatting: BindingJNILibLoader, AWTEDTExecutor
Diffstat (limited to 'src')
-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; + } + }); + } } |