From 970056b5ab9d23dcfa1869a585c52e377e5bab22 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Wed, 22 Aug 2018 03:20:27 -0700 Subject: [PATCH] BulletAppState: use multi-catch --- Minie/src/main/java/com/jme3/bullet/BulletAppState.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Minie/src/main/java/com/jme3/bullet/BulletAppState.java b/Minie/src/main/java/com/jme3/bullet/BulletAppState.java index 96586f58c..b3a475012 100644 --- a/Minie/src/main/java/com/jme3/bullet/BulletAppState.java +++ b/Minie/src/main/java/com/jme3/bullet/BulletAppState.java @@ -122,10 +122,7 @@ public Boolean call() throws Exception { }; try { return executor.submit(call).get(); - } catch (InterruptedException ex) { - Logger.getLogger(BulletAppState.class.getName()).log(Level.SEVERE, null, ex); - return false; - } catch (ExecutionException ex) { + } catch (InterruptedException | ExecutionException ex) { Logger.getLogger(BulletAppState.class.getName()).log(Level.SEVERE, null, ex); return false; } @@ -279,9 +276,7 @@ public void postRender() { try { physicsFuture.get(); physicsFuture = null; - } catch (InterruptedException ex) { - Logger.getLogger(BulletAppState.class.getName()).log(Level.SEVERE, null, ex); - } catch (ExecutionException ex) { + } catch (InterruptedException | ExecutionException ex) { Logger.getLogger(BulletAppState.class.getName()).log(Level.SEVERE, null, ex); } }