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/java/com/jogamp/common/util | |
parent | 3987a767d0edeaf74a23ea5d4d9c4793f4c3c8c1 (diff) |
Formatting: BindingJNILibLoader, AWTEDTExecutor
Diffstat (limited to 'src/java/com/jogamp/common/util')
-rw-r--r-- | src/java/com/jogamp/common/util/awt/AWTEDTExecutor.java | 20 |
1 files changed, 10 insertions, 10 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); - } } } |