Skip to content

Commit 062b73f

Browse files
committed
Polish contribution
See gh-44310
1 parent 84bde2a commit 062b73f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/ReactiveWebServerApplicationContext.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ public final void refresh() throws BeansException, IllegalStateException {
6565
try {
6666
super.refresh();
6767
}
68-
catch (RuntimeException refreshEx) {
68+
catch (RuntimeException ex) {
6969
WebServer webServer = getWebServer();
7070
if (webServer != null) {
7171
try {
7272
webServer.stop();
7373
webServer.destroy();
7474
}
7575
catch (RuntimeException stopOrDestroyEx) {
76-
refreshEx.addSuppressed(stopOrDestroyEx);
76+
ex.addSuppressed(stopOrDestroyEx);
7777
}
7878
}
79-
throw refreshEx;
79+
throw ex;
8080
}
8181
}
8282

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public final void refresh() throws BeansException, IllegalStateException {
145145
try {
146146
super.refresh();
147147
}
148-
catch (RuntimeException refreshEx) {
148+
catch (RuntimeException ex) {
149149
try {
150150
WebServer webServer = this.webServer;
151151
if (webServer != null) {
@@ -154,9 +154,9 @@ public final void refresh() throws BeansException, IllegalStateException {
154154
}
155155
}
156156
catch (RuntimeException stopOrDestroyEx) {
157-
refreshEx.addSuppressed(stopOrDestroyEx);
157+
ex.addSuppressed(stopOrDestroyEx);
158158
}
159-
throw refreshEx;
159+
throw ex;
160160
}
161161
}
162162

0 commit comments

Comments
 (0)