Skip to content

Commit

Permalink
BulletAppState: use multi-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Aug 22, 2018
1 parent be59303 commit 970056b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Minie/src/main/java/com/jme3/bullet/BulletAppState.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 970056b

Please sign in to comment.