From 70add0617afd3786351a446bc079d30b88f3a94b Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Mon, 27 Aug 2018 17:50:21 +0200 Subject: [PATCH] Collapse identical catch blocks Closes gh-14213 --- .../boot/web/embedded/undertow/SslBuilderCustomizer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/SslBuilderCustomizer.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/SslBuilderCustomizer.java index 64d314bf85..8dc75b98de 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/SslBuilderCustomizer.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/SslBuilderCustomizer.java @@ -84,10 +84,7 @@ class SslBuilderCustomizer implements UndertowBuilderCustomizer { Sequence.of(this.ssl.getCiphers())); } } - catch (NoSuchAlgorithmException ex) { - throw new IllegalStateException(ex); - } - catch (KeyManagementException ex) { + catch (NoSuchAlgorithmException | KeyManagementException ex) { throw new IllegalStateException(ex); } }