From 769ffb99067502202522205513c5ee0c3597b929 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe <luc@orekit.org> Date: Fri, 10 Dec 2021 17:58:08 +0100 Subject: [PATCH] Removed impossible exceptions. --- .../org/orekit/rugged/errors/DumpReplayer.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/main/java/org/orekit/rugged/errors/DumpReplayer.java b/src/main/java/org/orekit/rugged/errors/DumpReplayer.java index 2308472f..4a02b3c5 100644 --- a/src/main/java/org/orekit/rugged/errors/DumpReplayer.java +++ b/src/main/java/org/orekit/rugged/errors/DumpReplayer.java @@ -415,21 +415,7 @@ public class DumpReplayer { return rugged; - } catch (IOException ioe) { - throw new RuggedException(ioe, LocalizedCoreFormats.SIMPLE_MESSAGE, ioe.getLocalizedMessage()); - } catch (SecurityException e) { - // this should never happen - throw new RuggedInternalError(e); - } catch (NoSuchMethodException e) { - // this should never happen - throw new RuggedInternalError(e); - } catch (IllegalArgumentException e) { - // this should never happen - throw new RuggedInternalError(e); - } catch (IllegalAccessException e) { - // this should never happen - throw new RuggedInternalError(e); - } catch (InvocationTargetException e) { + } catch (IOException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { // this should never happen throw new RuggedInternalError(e); } -- GitLab