This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit 97701436555c0f0d6fa0f0f4f0e22efa7e402cb1 Author: aherbert <[email protected]> AuthorDate: Tue Aug 3 10:15:57 2021 +0100 Use multi-catch --- .../org/apache/commons/rng/simple/internal/ProviderBuilder.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/ProviderBuilder.java b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/ProviderBuilder.java index 1e3fa9c..11399b9 100644 --- a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/ProviderBuilder.java +++ b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/ProviderBuilder.java @@ -646,11 +646,7 @@ public final class ProviderBuilder { Object[] args) { try { return (RestorableUniformRandomProvider) rng.newInstance(args); - } catch (InvocationTargetException e) { - throw new IllegalStateException(INTERNAL_ERROR_MSG, e); - } catch (InstantiationException e) { - throw new IllegalStateException(INTERNAL_ERROR_MSG, e); - } catch (IllegalAccessException e) { + } catch (InvocationTargetException | InstantiationException | IllegalAccessException e) { throw new IllegalStateException(INTERNAL_ERROR_MSG, e); } }
